Skip to content

Commit

Permalink
Disable warnings about register specifier in system headers
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Apr 17, 2017
1 parent bd9be2a commit 4c3e59f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrastructure/m4/boxbackup_tests.m4
Expand Up @@ -46,6 +46,9 @@ AX_CHECK_COMPILE_FLAG(-std=c++0x,
[cxxflags_strict="$cxxflags_strict -std=c++0x"])
# And if we're going to do that, we don't want warnings about std::auto_ptr being deprecated:
BOX_CHECK_CXX_FLAG(-Wno-deprecated-declarations)
# We also get copious warnings from the 'register' storage class specifier in the system
# headers (ntohl and friends) which we can't do much about, so disable it:
BOX_CHECK_CXX_FLAG(-Wno-deprecated-register)
AC_SUBST([CXXFLAGS_STRICT], [$cxxflags_strict])

if test "x$GXX" = "xyes"; then
Expand Down

0 comments on commit 4c3e59f

Please sign in to comment.