Skip to content

Commit f00dc78

Browse files
committed
build: drop -Wdangling-reference GCC suppression
1 parent 6d81d06 commit f00dc78

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

configure.ac

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -450,21 +450,14 @@ if test "$enable_werror" = "yes"; then
450450
fi
451451
ERROR_CXXFLAGS=$CXXFLAG_WERROR
452452

453-
dnl -Warray-bounds and -Wdangling-reference cause problems with GCC. Do not treat these warnings as errors.
453+
dnl -Warray-bounds cause problems with GCC. Do not treat these warnings as errors.
454454
dnl Suppress -Warray-bounds entirely because of noisy output, currently unhappy with immer implementation.
455455
AX_CHECK_COMPILE_FLAG([-Warray-bounds], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-array-bounds"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
456456
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
457457
#error Non-GCC compiler detected, not setting flag
458458
#endif
459459
int main(void) { return 0; }
460460
])])
461-
dnl TODO: Remove suppression after backporting bitcoin#27605
462-
AX_CHECK_COMPILE_FLAG([-Wdangling-reference], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-error=dangling-reference"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([
463-
#if defined(__clang__) || defined(__INTEL_COMPILER) || !defined(__GNUC__)
464-
#error Non-GCC compiler detected, not setting flag
465-
#endif
466-
int main(void) { return 0; }
467-
])])
468461

469462
dnl -Wattributes cause problems with some versions of GCC. Do not treat these warnings as errors.
470463
AX_CHECK_COMPILE_FLAG([-Wattributes], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-error=attributes"], [], [$CXXFLAG_WERROR], [AC_LANG_SOURCE([

0 commit comments

Comments
 (0)