From 2f35f86e1ed12f9dde95ffa2d4cf00107050f61e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 25 Feb 2024 10:30:29 -0600 Subject: [PATCH] Update: Disable -fstrict-flex-arrays=3 flag because it doesn't work on GCC 11. I just did tests on GCC 11, which is not too old. The -fstrict-flex-arrays flag does not work there. For now, just disable the flag by setting it to the non-existent gcc_13 mode. The mode can be added to the mode list and enabled if so desired. I may make version specific modes available in the future (or not) but that will require some planning. The fakefile should be designed to test the GCC version, but I would rather avoid such logic by design. Let the distributor or the system administrator handle such decisions. --- data/build/remove/settings | 2 +- data/build/tacocat/settings | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/build/remove/settings b/data/build/remove/settings index 04d41d2..0474129 100644 --- a/data/build/remove/settings +++ b/data/build/remove/settings @@ -84,7 +84,7 @@ flags -D_FORTIFY_SOURCE=3 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-gcc -fstrict-flex-arrays=3 +flags-gcc_13 -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ diff --git a/data/build/tacocat/settings b/data/build/tacocat/settings index f87f7f4..91e2de2 100644 --- a/data/build/tacocat/settings +++ b/data/build/tacocat/settings @@ -86,7 +86,7 @@ flags -D_FORTIFY_SOURCE=3 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-gcc -fstrict-flex-arrays=3 +flags-gcc_13 -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ -- 1.8.3.1