mirror of https://github.com/davisking/dlib.git
fixed compiler warnings in old gcc
This commit is contained in:
parent
6b064d3584
commit
a3dad7aca6
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
// Don't warn about the use of std::auto_ptr in this file. There is a pragma at the end of
|
// Don't warn about the use of std::auto_ptr in this file. There is a pragma at the end of
|
||||||
// this file that re-enables the warning.
|
// this file that re-enables the warning.
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
#endif
|
#endif
|
||||||
|
@ -527,7 +527,7 @@ namespace dlib
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
// Don't warn about the use of std::auto_ptr in this file. There is a pragma at the end of
|
// Don't warn about the use of std::auto_ptr in this file. There is a pragma at the end of
|
||||||
// this file that re-enables the warning.
|
// this file that re-enables the warning.
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
#endif
|
#endif
|
||||||
|
@ -497,7 +497,7 @@ namespace dlib
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue