Suppressed some spurious warnings from gcc 4.8

This commit is contained in:
Davis King 2014-01-02 19:57:59 -05:00
parent 101e316fd1
commit 47ec9a6634
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,12 @@
#include "matrix_fwd.h"
#include "matrix_data_layout_abstract.h"
// GCC 4.8 gives false alarms about some matrix operations going out of bounds. Disable
// these false warnings.
#if ( defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 8)
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
namespace dlib
{

View File

@ -16,6 +16,12 @@
*/
// GCC 4.8 gives false alarms about some variables being uninitialized. Disable these
// false warnings.
#if ( defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 8)
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
namespace dlib
{