From: Maria Matejka Date: Mon, 1 Apr 2024 13:24:28 +0000 (+0200) Subject: Enabling warnings for implicit seq_cst in atomic access X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a82c6b90c7a9d173d232ecd0d9a76485e93972b;p=thirdparty%2Fbird.git Enabling warnings for implicit seq_cst in atomic access --- diff --git a/configure.ac b/configure.ac index 465f729e6..f8be2847e 100644 --- a/configure.ac +++ b/configure.ac @@ -146,7 +146,7 @@ CFLAGS="$CFLAGS -fno-strict-aliasing -fno-strict-overflow" if test "$bird_cflags_default" = yes ; then BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_pointer_sign], [-Wno-pointer-sign], [-Wall]) BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_missing_init], [-Wno-missing-field-initializers], [-Wall -Wextra]) - + BIRD_CHECK_GCC_OPTION([bird_cv_c_option_watomic_implicit_seq_cst], [-Watomic-implicit-seq-cst], [-Wall -Wextra]) if test "$enable_debug" = no; then BIRD_CHECK_LTO @@ -162,6 +162,7 @@ if test "$bird_cflags_default" = yes ; then CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses" BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_pointer_sign], [-Wno-pointer-sign]) BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_missing_init], [-Wno-missing-field-initializers]) + BIRD_ADD_GCC_OPTION([bird_cv_c_option_watomic_implicit_seq_cst], [-Watomic-implicit-seq-cst]) fi