Skip to content

Commit

Permalink
Fix warning that overloaded method hides inherited ones
Browse files Browse the repository at this point in the history
Make this warning an error to prevent it from happening again.
  • Loading branch information
qris committed Dec 6, 2016
1 parent 6115c93 commit ef80b5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infrastructure/m4/boxbackup_tests.m4
Expand Up @@ -19,6 +19,11 @@ AX_CHECK_COMPILE_FLAG(-Werror=non-virtual-dtor,
[cxxflags_strict="$cxxflags_strict -Werror=non-virtual-dtor"])
AX_CHECK_COMPILE_FLAG(-Werror=delete-non-virtual-dtor,
[cxxflags_strict="$cxxflags_strict -Werror=delete-non-virtual-dtor"])
# We should really enable -Werror=sometimes-uninitialized, but QDBM violates it:
dnl AX_CHECK_COMPILE_FLAG(-Werror=sometimes-uninitialized,
dnl [cxxflags_strict="$cxxflags_strict -Werror=sometimes-uninitialized"])
AX_CHECK_COMPILE_FLAG(-Werror=overloaded-virtual,
[cxxflags_strict="$cxxflags_strict -Werror=overloaded-virtual"])
AC_SUBST([CXXFLAGS_STRICT], [$cxxflags_strict])

if test "x$GXX" = "xyes"; then
Expand Down
1 change: 1 addition & 0 deletions test/bbackupd/testbbackupd.cpp
Expand Up @@ -1330,6 +1330,7 @@ class KeepAliveBackupProtocolLocal : public BackupProtocolLocal2
mNumKeepAlivesReceived++;
return response;
}
using BackupProtocolLocal2::Query;
};

bool test_ssl_keepalives()
Expand Down

0 comments on commit ef80b5a

Please sign in to comment.