Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
47ec9a66
Commit
47ec9a66
authored
Jan 02, 2014
by
Davis King
Browse files
Suppressed some spurious warnings from gcc 4.8
parent
101e316f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
dlib/matrix/matrix_data_layout.h
dlib/matrix/matrix_data_layout.h
+6
-0
dlib/test/optimization_test_functions.h
dlib/test/optimization_test_functions.h
+6
-0
No files found.
dlib/matrix/matrix_data_layout.h
View file @
47ec9a66
...
@@ -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
{
{
...
...
dlib/test/optimization_test_functions.h
View file @
47ec9a66
...
@@ -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
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment