remove -pedantic from the header compilation check to allow anonymous structs

Wed, 21 Jan 2026 22:39:04 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 21 Jan 2026 22:39:04 +0100
changeset 1703
bbbcf550f1ed
parent 1702
3f05e8f97b22
child 1704
7bc94a96a621

remove -pedantic from the header compilation check to allow anonymous structs

relates to #799

check-all.sh file | annotate | diff | comparison | revisions
--- a/check-all.sh	Wed Jan 21 22:24:28 2026 +0100
+++ b/check-all.sh	Wed Jan 21 22:39:04 2026 +0100
@@ -42,8 +42,10 @@
 
 for cxx in clang++ g++; do
   printf "Check header errors/warnings with $cxx..."
+  # no -pedantic to allow anonymous structs
   if $cxx -o /dev/null -I src \
-      -Werror -Wall -Wextra -pedantic tests/cpptest.cpp ; then
+      -Werror -Wall -Wextra \
+      tests/cpptest.cpp ; then
     echo "ok."
   else
     echo "fail."

mercurial