From 9c564eff2732ab0330ff88e7be6d3cd56f9f686a Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 1 Apr 2024 15:24:28 +0200 Subject: [PATCH] Enabling warnings for implicit seq_cst in atomic access --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 465f729e..f8be2847 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