mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Suppressed some spurious warnings from gcc 4.8
This commit is contained in:
parent
101e316fd1
commit
47ec9a6634
@ -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
|
||||
{
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user