From: Kevin Day Date: Mon, 17 Apr 2023 02:43:56 +0000 (-0500) Subject: Cleanup: Add -Wno-main flag to disable GCC's warning about "main". X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=b873f4ab838db4547b9d8052b51b738c54217362;p=fll Cleanup: Add -Wno-main flag to disable GCC's warning about "main". This program is careful in its use of "main" and its use is correct given the complete isolation from main.c. --- diff --git a/build/stand_alone/fake.settings b/build/stand_alone/fake.settings index 1d88523..f2dc8e8 100644 --- a/build/stand_alone/fake.settings +++ b/build/stand_alone/fake.settings @@ -121,7 +121,7 @@ defines-clang -D_clang_not_a_compile_time_constant_workaround_ defines-threadless -D_di_thread_support_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ -flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses +flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-main flags-thread -pthread flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall diff --git a/level_3/fake/data/build/settings b/level_3/fake/data/build/settings index dfd9f2d..6b1aca2 100644 --- a/level_3/fake/data/build/settings +++ b/level_3/fake/data/build/settings @@ -86,7 +86,7 @@ defines -D_libcap_legacy_only_ defines-threadless -D_di_thread_support_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ -flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces +flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces -Wno-main flags-thread -pthread flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall