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

+11 -7
View File
@@ -38,9 +38,12 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-bitwise-op-parentheses -Wno-char-subscripts -Wno-pointer-to-int-cast \
-Wno-return-type -Wno-unused-parameter -Wno-unused-variable \
-Wno-typedef-redefinition -Wno-deprecated-non-prototype -Wno-implicit-int
CSILENCE= -Wno-bitwise-op-parentheses -Wno-char-subscripts \
-Wno-pointer-to-int-cast -Wno-return-type -Wno-unused-parameter \
-Wno-unused-variable -Wno-typedef-redefinition \
-Wno-deprecated-non-prototype -Wno-implicit-int \
-Wno-cast-function-type -Wno-misleading-indentation \
-Wno-parentheses -Wno-unused-value
# Common C compiler warning flags
#
@@ -86,10 +89,11 @@ CC= cc
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
#
CSILENCE+= -Wno-array-bounds-pointer-arithmetic -Wno-implicit-int-conversion \
-Wno-keyword-macro -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-pedantic \
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
-Wno-strict-prototypes -Wno-cast-function-type
-Wno-keyword-macro -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-pedantic \
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
-Wno-incompatible-function-pointer-types-strict -Wno-reserved-identifier \
-Wno-unsafe-buffer-usage -Wno-strict-prototypes -Wno-cast-function-type
#
CWARN+= -Weverything
#