From b873f4ab838db4547b9d8052b51b738c54217362 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 16 Apr 2023 21:43:56 -0500 Subject: [PATCH] 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. --- build/stand_alone/fake.settings | 2 +- level_3/fake/data/build/settings | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.3.1