From 008325d6e817390d53b6439273a079ab8a8f3eeb Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 28 May 2019 03:46:18 -0700 Subject: [PATCH] configure: Disable -Wextra-tokens. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index ce1df3297..54a29fcfa 100644 --- a/configure.ac +++ b/configure.ac @@ -603,6 +603,12 @@ dnl rather than the rethrow. Unless throwing into a noexcept that way has UB in dnl optimized build I really don't care and just want to type `throw;` thx. CHARYBDIS_C_GCC_TRY_FLAGS([-Wno-terminate], charybdis_cv_c_gcc_w_terminate) +dnl This warning is disabled to allow preprocessor statements like #endif to +dnl contain text on the same line. This is used for example to write the +dnl identifier in the matching prior #ifdef, which has no actual effect except +dnl clarity. +CHARYBDIS_C_GCC_TRY_FLAGS([-Wno-extra-tokens], charybdis_cv_c_gcc_w_extra_tokens) + dnl dnl List of compiler-specific / incompatible warning options dnl