Skip to content

Commit

Permalink
Add compile-time check for deleting of incomplete types
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Dec 24, 2016
1 parent 5ac89a4 commit f205871
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure/m4/boxbackup_tests.m4
Expand Up @@ -29,6 +29,10 @@ 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"])
# This error is detected by MSVC, but not usually by GCC/Clang:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58114
AX_CHECK_COMPILE_FLAG(-Werror=delete-incomplete,
[cxxflags_strict="$cxxflags_strict -Werror=delete-incomplete"])
AC_SUBST([CXXFLAGS_STRICT], [$cxxflags_strict])

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

0 comments on commit f205871

Please sign in to comment.