]> Kevux Git Server - fll/commitdiff
Cleanup: Add -Wno-main flag to disable GCC's warning about "main".
authorKevin Day <kevin@kevux.org>
Mon, 17 Apr 2023 02:43:56 +0000 (21:43 -0500)
committerKevin Day <kevin@kevux.org>
Mon, 17 Apr 2023 02:43:56 +0000 (21:43 -0500)
This program is careful in its use of "main" and its use is correct given the complete isolation from main.c.

build/stand_alone/fake.settings
level_3/fake/data/build/settings

index 1d8852315659c4f043080d04d58e83c82e94a9af..f2dc8e81a96dd5f9cad8f7364cd499bda8d5695c 100644 (file)
@@ -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
index dfd9f2d271ced6953c70afa6e3de7c0aea7e51a7..6b1aca28c6bd85e35cbdc783f797a214b32bc686 100644 (file)
@@ -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