Commit 47ec9a66 authored by Davis King's avatar Davis King

Suppressed some spurious warnings from gcc 4.8

parent 101e316f
...@@ -7,6 +7,12 @@ ...@@ -7,6 +7,12 @@
#include "matrix_fwd.h" #include "matrix_fwd.h"
#include "matrix_data_layout_abstract.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 namespace dlib
{ {
......
...@@ -16,6 +16,12 @@ ...@@ -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 namespace dlib
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment