From 597e821a75303f65e880f9ef113835b6f7552d93 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 17 Mar 2023 21:36:55 -0500 Subject: [PATCH] Bugfix: Add missing includes, add missing fanalyzer mode, and fix problems with stand alone fake. The stand alone Featureless Make is not building properly. Investigation reveals that there are missing sources and missing header includes. For some reason the missing includes do not cause a problem in 0.6 or in non-stand_alone 0.7 builds. However, it does cause a problem in the stand alone build. Add the missing header includes. --- build/stand_alone/byte_dump.settings | 3 ++- build/stand_alone/fake.settings | 9 +++++---- build/stand_alone/firewall.settings | 3 ++- build/stand_alone/utf8.settings | 3 ++- level_1/fl_execute/c/execute.h | 3 +++ level_3/fake/c/main/fake.h | 2 ++ 6 files changed, 16 insertions(+), 7 deletions(-) diff --git a/build/stand_alone/byte_dump.settings b/build/stand_alone/byte_dump.settings index 0236fac..81e9ec6 100644 --- a/build/stand_alone/byte_dump.settings +++ b/build/stand_alone/byte_dump.settings @@ -12,7 +12,7 @@ version_micro 2 version_file micro version_target minor -modes stand_alone clang +modes stand_alone clang fanalyzer modes_default stand_alone build_compiler gcc @@ -81,6 +81,7 @@ defines-clang -D_clang_not_a_compile_time_constant_workaround_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses +flags-fanalyzer -fanalyzer flags_library -fPIC flags_object -fPIC diff --git a/build/stand_alone/fake.settings b/build/stand_alone/fake.settings index 66662d5..ed8e2d1 100644 --- a/build/stand_alone/fake.settings +++ b/build/stand_alone/fake.settings @@ -12,7 +12,7 @@ version_micro 0 version_file micro version_target minor -modes stand_alone clang +modes stand_alone clang fanalyzer modes_default stand_alone build_compiler gcc @@ -29,12 +29,12 @@ build_sources_program fll/level_0/color.c fll/level_0/private-color.c fll/level_ build_sources_program fll/level_0/console.c fll/level_0/console/common.c fll/level_0/private-console.c build_sources_program fll/level_0/control_group.c fll/level_0/control_group/common.c build_sources_program fll/level_0/conversion.c fll/level_0/private-conversion.c fll/level_0/conversion/common.c -build_sources_program fll/level_0/directory.c fll/level_0/directory/common.c fll/level_0/private-directory.c +build_sources_program fll/level_0/directory.c fll/level_0/directory/common.c fll/level_0/directory/type.c fll/level_0/private-directory.c fll/level_0/directory/private-type.c build_sources_program fll/level_0/environment.c build_sources_program fll/level_0/execute.c build_sources_program fll/level_0/file.c fll/level_0/private-file.c fll/level_0/file/common.c fll/level_0/file/stream.c build_sources_program fll/level_0/fss.c fll/level_0/private-fss.c fll/level_0/fss/common.c fll/level_0/fss/named.c fll/level_0/fss/nest.c fll/level_0/fss/set.c -build_sources_program fll/level_0/iki.c fll/level_0/iki/common.c fll/level_0/iki/data.c fll/level_0/private-iki.c fll/level_0/iki/private-data.c +build_sources_program fll/level_0/iki.c fll/level_0/private-iki.c fll/level_0/iki/common.c fll/level_0/iki/private-data.c fll/level_0/iki/data.c build_sources_program fll/level_0/limit.c fll/level_0/limit/set.c fll/level_0/limit/value.c fll/level_0/limit/private-set.c fll/level_0/limit/private-value.c build_sources_program fll/level_0/memory.c fll/level_0/private-memory.c fll/level_0/memory/structure.c build_sources_program fll/level_0/path.c fll/level_0/private-path.c fll/level_0/path/common.c @@ -60,7 +60,7 @@ build_sources_program fll/level_1/path.c build_sources_program fll/level_1/print.c fll/level_1/private-print.c fll/level_1/print/common.c build_sources_program fll/level_1/string.c fll/level_1/private-string.c -build_sources_program fll/level_2/error.c fll/level_2/error/common.c fll/level_2/private-error.c +build_sources_program fll/level_2/error.c fll/level_2/private-error.c fll/level_2/error/common.c build_sources_program fll/level_2/execute.c fll/level_2/private-execute.c build_sources_program fll/level_2/file.c fll/level_2/private-file.c build_sources_program fll/level_2/fss.c fll/level_2/fss/basic.c fll/level_2/fss/basic_list.c fll/level_2/fss/embedded_list.c fll/level_2/fss/extended.c fll/level_2/fss/extended_list.c fll/level_2/fss/payload.c @@ -110,6 +110,7 @@ defines-clang -D_clang_not_a_compile_time_constant_workaround_ flags -O2 -z now -g -pthread -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses flags-clang -Wno-logical-op-parentheses +flags-fanalyzer -fanalyzer flags_library -fPIC flags_object -fPIC diff --git a/build/stand_alone/firewall.settings b/build/stand_alone/firewall.settings index d643eb3..df8f4a6 100644 --- a/build/stand_alone/firewall.settings +++ b/build/stand_alone/firewall.settings @@ -12,7 +12,7 @@ version_micro 2 version_file micro version_target minor -modes stand_alone clang +modes stand_alone clang fanalyzer modes_default stand_alone build_compiler gcc @@ -98,6 +98,7 @@ defines-clang -D_clang_not_a_compile_time_constant_workaround_ flags -O2 -z now -g -pthread -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses +flags-fanalyzer -fanalyzer flags_library -fPIC flags_object -fPIC diff --git a/build/stand_alone/utf8.settings b/build/stand_alone/utf8.settings index 5287836..dcec725 100644 --- a/build/stand_alone/utf8.settings +++ b/build/stand_alone/utf8.settings @@ -12,7 +12,7 @@ version_micro 0 version_file micro version_target minor -modes stand_alone clang +modes stand_alone clang fanalyzer modes_default stand_alone build_compiler gcc @@ -83,6 +83,7 @@ defines-clang -D_clang_not_a_compile_time_constant_workaround_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses flags-clang -Wno-logical-op-parentheses +flags-fanalyzer -fanalyzer flags_library -fPIC flags_object -fPIC diff --git a/level_1/fl_execute/c/execute.h b/level_1/fl_execute/c/execute.h index 061dbc2..ef222ad 100644 --- a/level_1/fl_execute/c/execute.h +++ b/level_1/fl_execute/c/execute.h @@ -28,6 +28,9 @@ #include #include #include +#include +#include +#include #include #include #include diff --git a/level_3/fake/c/main/fake.h b/level_3/fake/c/main/fake.h index 2f47813..fb8d5de 100644 --- a/level_3/fake/c/main/fake.h +++ b/level_3/fake/c/main/fake.h @@ -77,9 +77,11 @@ #include // FLL-1 includes. +#include #include #include #include +#include #include #include #include -- 1.8.3.1