silence compiler warnings for RHEL 9 Linux

We updated ${CSILENCE} Makefile variables for entries in an attempt to
minimize compiler warnings.  This was tested using
gcc version 11.4.1 20230605 (Red Hat 11.4.1-2) (GCC).

TODO: Recheck macOS clang to see if any new warnings have occur
      under macOS clang.
This commit is contained in:
Landon Curt Noll committed 2024-03-12 23:35:24 -07:00
1 parent cbbf6dbf7a
commit 61172e5f88
313 files changed
+1609 -1063

No files matched your search

+8 -7
View File
@@ -39,9 +39,10 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
-Wno-conditional-type-mismatch -Wno-error \
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion \
-Wno-pointer-type-mismatch -Wno-unsequenced -Wno-deprecated-non-prototype
-Wno-conditional-type-mismatch -Wno-error \
-Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-int-conversion -Wno-pointer-type-mismatch -Wno-unsequenced \
-Wno-deprecated-non-prototype -Wno-parentheses -Wno-unused-value
# Common C compiler warning flags
#
@@ -87,8 +88,8 @@ CC= cc
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
#
CSILENCE+= -Wno-implicit-int-conversion -Wno-missing-variable-declarations \
-Wno-pedantic -Wno-poison-system-directories -Wno-shorten-64-to-32 \
-Wno-strict-prototypes
-Wno-pedantic -Wno-poison-system-directories -Wno-shorten-64-to-32 \
-Wno-strict-prototypes -Wno-extra-semi-stmt -Wno-unsafe-buffer-usage
#
CWARN+= -Weverything
#
@@ -154,8 +155,8 @@ ${PROG}.alt: ${PROG}.alt.c
#
data ${SUBDIR_SET}: ${DATA}
${RM} -rf ${SUBDIR_SET}
${UNZIP} ${ZIP_DATA}
${UNZIP} ${ZIP_DATA}
# both all and alt
#
everything: all alt