From 685538271e3e213a18c5a925654aaa32c0b69f1e Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 22 Mar 2026 10:22:09 +0200 Subject: [PATCH] Build: Remove -Wpre-c2x-compat It makes clang -std=gnu23 noisy about bool. It's also noisy about [[__fallthrough__]] which is only used in C23 mode. Reported-by: Collin Funk --- CMakeLists.txt | 1 - configure.ac | 1 - 2 files changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d853b166..bcaab079 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -442,7 +442,6 @@ if(CMAKE_C_COMPILER_ID MATCHES GNU|Clang) -Wc11-extensions -Wc2x-compat -Wc2x-extensions - -Wpre-c2x-compat -Warray-bounds-pointer-arithmetic -Wassign-enum -Wconditional-uninitialized diff --git a/configure.ac b/configure.ac index 3c0ab6b6..dcbdf840 100644 --- a/configure.ac +++ b/configure.ac @@ -1353,7 +1353,6 @@ AS_IF([test "$GCC" = yes], [ -Wc11-extensions \ -Wc2x-compat \ -Wc2x-extensions \ - -Wpre-c2x-compat \ -Warray-bounds-pointer-arithmetic \ -Wassign-enum \ -Wconditional-uninitialized \