]> Kevux Git Server - fll/commit
Update: Fix problems and make changes after testing LLVM's Clang compiler.
authorKevin Day <thekevinday@gmail.com>
Wed, 28 Apr 2021 23:08:29 +0000 (18:08 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 28 Apr 2021 23:29:45 +0000 (18:29 -0500)
commit710bbfd684be48b3e60279427da5eeacd3906104
tree53d01788860d69266d857a572f9fa41a21fc593f
parentbc32f8383046b01503555686a47544688055a0df
Update: Fix problems and make changes after testing LLVM's Clang compiler.

Add flags "-Wno-logical-not-parentheses" "-Wno-logical-op-parentheses".
Programmers should be expected to understand the language they are working.
Having the compiler for a style is bad practice.

The cap_to_text() needs ssize_t, do not use f_array_length_t.

The project is inconsistently using int8_t and uint8_t for character types.
Furthermore, clang likes to complain about uint8_t being converted to char.
(I believe uint8_t is supposed to be of type unsigned char and char by default is supposed to be unsigned.)
Fix the inconsistency and just use char, which happens to make clang happy without any complaints from gcc.

Clang does a much better job at detecting some problems than GCC.
Compiling with clang resulted in revealing several printf related problems that now should be fixed.

The f_gcc_attribute_visibility_internal (and related) have the "_gcc" removed because these seem to exist beyond just gcc (such as with clang).

Make sure something is always returned.
There are some functions that didn't have a return.

One of the UTF processing functions has an accidental hex character in the condition.
Remove the extra character, which I am pretty sure is the leading "d".
I have not validated the correct sequence and so further investigation in the proper sequence for U+1D7CE to U+1D7D7 may be warranted.

The clang compiler claims that int main() should only be an integer for the argc.
This is unfortunate but that is fine, switch to use an int instead of an unsigned long.
185 files changed:
build/level_0/settings
build/level_1/settings
build/level_2/settings
build/monolithic/settings
level_0/f_account/c/private-account.h
level_0/f_account/data/build/settings
level_0/f_capability/c/capability.c
level_0/f_capability/data/build/settings
level_0/f_color/c/color-common.h
level_0/f_color/c/color.c
level_0/f_color/c/color.h
level_0/f_color/data/build/settings
level_0/f_console/c/console-common.h
level_0/f_console/data/build/settings
level_0/f_control_group/data/build/settings
level_0/f_conversion/c/conversion.c
level_0/f_conversion/c/conversion.h
level_0/f_conversion/data/build/settings
level_0/f_directory/c/private-directory.h
level_0/f_directory/data/build/settings
level_0/f_environment/c/private-environment.h
level_0/f_environment/data/build/settings
level_0/f_execute/data/build/settings
level_0/f_file/c/file.c
level_0/f_file/c/private-file.h
level_0/f_file/data/build/settings
level_0/f_fss/c/private-fss.h
level_0/f_fss/data/build/settings
level_0/f_iki/c/private-iki.h
level_0/f_iki/data/build/settings
level_0/f_limit/data/build/settings
level_0/f_memory/c/private-memory.h
level_0/f_memory/data/build/settings
level_0/f_path/c/private-path.h
level_0/f_path/data/build/settings
level_0/f_pipe/data/build/settings
level_0/f_print/c/private-print.h
level_0/f_print/data/build/settings
level_0/f_serialize/c/private-serialize.h
level_0/f_serialize/data/build/settings
level_0/f_signal/data/build/settings
level_0/f_socket/data/build/settings
level_0/f_status/data/build/settings
level_0/f_string/c/private-string.h
level_0/f_string/c/string.c
level_0/f_string/c/string.h
level_0/f_string/c/string_dynamic.c
level_0/f_string/c/string_dynamic.h
level_0/f_string/data/build/settings
level_0/f_thread/c/private-thread.h
level_0/f_thread/data/build/settings
level_0/f_type/c/type.h
level_0/f_type/data/build/settings
level_0/f_type_array/c/private-type_array.h
level_0/f_type_array/data/build/settings
level_0/f_utf/c/private-utf.c
level_0/f_utf/c/private-utf.h
level_0/f_utf/c/utf-common.c
level_0/f_utf/c/utf-common.h
level_0/f_utf/c/utf.c
level_0/f_utf/c/utf.h
level_0/f_utf/c/utf_dynamic.c
level_0/f_utf/c/utf_dynamic.h
level_0/f_utf/data/build/settings
level_1/fl_console/data/build/settings
level_1/fl_control_group/c/control_group.c
level_1/fl_control_group/data/build/settings
level_1/fl_conversion/data/build/settings
level_1/fl_directory/c/private-directory.h
level_1/fl_directory/data/build/settings
level_1/fl_environment/data/build/settings
level_1/fl_execute/data/build/settings
level_1/fl_fss/c/private-fss.c
level_1/fl_fss/c/private-fss.h
level_1/fl_fss/data/build/settings
level_1/fl_iki/data/build/settings
level_1/fl_print/c/private-print.h
level_1/fl_print/data/build/settings
level_1/fl_status/data/build/settings
level_1/fl_string/c/private-string.h
level_1/fl_string/c/string.c
level_1/fl_string/c/string.h
level_1/fl_string/data/build/settings
level_1/fl_utf/c/private-utf.h
level_1/fl_utf/c/utf.c
level_1/fl_utf/c/utf.h
level_1/fl_utf/data/build/settings
level_1/fl_utf_file/c/private-utf_file.c
level_1/fl_utf_file/c/private-utf_file.h
level_1/fl_utf_file/data/build/settings
level_2/fll_control_group/data/build/settings
level_2/fll_error/c/error.c
level_2/fll_error/c/private-error.c
level_2/fll_error/c/private-error.h
level_2/fll_error/data/build/settings
level_2/fll_execute/c/private-execute.c
level_2/fll_execute/c/private-execute.h
level_2/fll_execute/data/build/settings
level_2/fll_file/c/private-file.h
level_2/fll_file/data/build/settings
level_2/fll_fss/c/private-fss.h
level_2/fll_fss/data/build/settings
level_2/fll_iki/c/private-iki.h
level_2/fll_iki/data/build/settings
level_2/fll_path/data/build/settings
level_2/fll_program/c/program.c
level_2/fll_program/data/build/settings
level_2/fll_status/data/build/settings
level_3/byte_dump/c/main.c
level_3/byte_dump/c/private-byte_dump.c
level_3/byte_dump/c/private-byte_dump.h
level_3/byte_dump/data/build/settings
level_3/control/c/main.c
level_3/control/data/build/settings
level_3/controller/c/controller.c
level_3/controller/c/main.c
level_3/controller/c/private-common.c
level_3/controller/c/private-common.h
level_3/controller/c/private-controller.c
level_3/controller/c/private-controller.h
level_3/controller/c/private-entry.c
level_3/controller/c/private-entry.h
level_3/controller/c/private-rule.c
level_3/controller/c/private-rule.h
level_3/controller/c/private-thread.h
level_3/controller/data/build/settings
level_3/fake/c/main.c
level_3/fake/c/private-build.h
level_3/fake/c/private-clean.h
level_3/fake/c/private-fake.h
level_3/fake/c/private-make.c
level_3/fake/c/private-make.h
level_3/fake/c/private-print.h
level_3/fake/c/private-skeleton.h
level_3/fake/data/build/settings
level_3/firewall/c/private-firewall.c
level_3/firewall/c/private-firewall.h
level_3/firewall/data/build/settings
level_3/fss_basic_list_read/c/main.c
level_3/fss_basic_list_read/c/private-fss_basic_list_read.c
level_3/fss_basic_list_read/c/private-fss_basic_list_read.h
level_3/fss_basic_list_read/data/build/settings
level_3/fss_basic_list_write/c/main.c
level_3/fss_basic_list_write/c/private-fss_basic_list_write.h
level_3/fss_basic_list_write/data/build/settings
level_3/fss_basic_read/c/main.c
level_3/fss_basic_read/c/private-fss_basic_read.c
level_3/fss_basic_read/c/private-fss_basic_read.h
level_3/fss_basic_read/data/build/settings
level_3/fss_basic_write/c/main.c
level_3/fss_basic_write/c/private-fss_basic_write.h
level_3/fss_basic_write/data/build/settings
level_3/fss_embedded_list_read/c/main.c
level_3/fss_embedded_list_read/c/private-fss_embedded_list_read.h
level_3/fss_embedded_list_read/data/build/settings
level_3/fss_embedded_list_write/c/main.c
level_3/fss_embedded_list_write/c/private-fss_embedded_list_write.h
level_3/fss_embedded_list_write/data/build/settings
level_3/fss_extended_list_read/c/main.c
level_3/fss_extended_list_read/c/private-fss_extended_list_read.c
level_3/fss_extended_list_read/c/private-fss_extended_list_read.h
level_3/fss_extended_list_read/data/build/settings
level_3/fss_extended_list_write/c/main.c
level_3/fss_extended_list_write/c/private-fss_extended_list_write.h
level_3/fss_extended_list_write/data/build/settings
level_3/fss_extended_read/c/main.c
level_3/fss_extended_read/c/private-fss_extended_read.c
level_3/fss_extended_read/c/private-fss_extended_read.h
level_3/fss_extended_read/data/build/settings
level_3/fss_extended_write/c/main.c
level_3/fss_extended_write/c/private-fss_extended_write.h
level_3/fss_extended_write/data/build/settings
level_3/fss_status_code/c/main.c
level_3/fss_status_code/c/private-fss_status_code.h
level_3/fss_status_code/data/build/settings
level_3/iki_read/c/iki_read.c
level_3/iki_read/c/main.c
level_3/iki_read/c/private-iki_read.h
level_3/iki_read/data/build/settings
level_3/iki_write/c/main.c
level_3/iki_write/c/private-iki_write.h
level_3/iki_write/data/build/settings
level_3/status_code/c/main.c
level_3/status_code/c/private-status_code.h
level_3/status_code/data/build/settings