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:
1 parent
cbbf6dbf7a
commit
61172e5f88
313 files changed
+1609
-1063
No files matched your search
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-implicit-int -Wno-main -Wno-return-type -Wno-trigraphs \
|
||||
-Wno-unused-parameter -Wno-incompatible-pointer-types \
|
||||
-Wno-deprecated-declarations -Wno-deprecated-non-prototype
|
||||
-Wno-implicit-int -Wno-main -Wno-return-type -Wno-trigraphs \
|
||||
-Wno-unused-parameter -Wno-incompatible-pointer-types \
|
||||
-Wno-deprecated-declarations -Wno-deprecated-non-prototype \
|
||||
-Wno-builtin-declaration-mismatch -Wno-restrict
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,8 +88,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-disabled-macro-expansion -Wno-extra-semi -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unsafe-buffer-usage -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user