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,8 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-expansion-to-defined -Wno-implicit-int -Wno-strict-prototypes \
|
||||
-Wno-gnu-line-marker
|
||||
|
||||
-Wno-gnu-line-marker -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+6
-4
@@ -39,8 +39,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-implicit-function-declaration -Wno-implicit-int -Wno-keyword-macro \
|
||||
-Wno-pointer-to-int-cast -Wno-return-type -Wno-unused-value \
|
||||
-Wno-deprecated-non-prototype
|
||||
-Wno-pointer-to-int-cast -Wno-return-type -Wno-unused-value \
|
||||
-Wno-deprecated-non-prototype -Wno-builtin-declaration-mismatch \
|
||||
-Wno-implicit-fallthrough -Wno-missing-parameter-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,8 +87,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-comma -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic -Wno-shorten-64-to-32 \
|
||||
-Wno-unused-macros
|
||||
-Wno-missing-variable-declarations -Wno-pedantic -Wno-shorten-64-to-32 \
|
||||
-Wno-unused-macros -Wno-extra-semi-stmt -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+8
-6
@@ -38,11 +38,12 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-comma -Wno-implicit-function-declaration -Wno-format-insufficient-args \
|
||||
-Wno-implicit-int -Wno-incompatible-library-redeclaration -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories -Wno-return-type \
|
||||
-Wno-shadow -Wno-shift-op-parentheses -Wno-strict-prototypes -Wno-unreachable-code \
|
||||
-Wno-unused-macros -Wno-int-conversion -Wno-macro-redefined
|
||||
CSILENCE= -Wno-comma -Wno-implicit-function-declaration -Wno-format-insufficient-args \
|
||||
-Wno-implicit-int -Wno-incompatible-library-redeclaration -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories -Wno-return-type \
|
||||
-Wno-shadow -Wno-shift-op-parentheses -Wno-strict-prototypes -Wno-unreachable-code \
|
||||
-Wno-unused-macros -Wno-int-conversion -Wno-macro-redefined -Wno-parentheses \
|
||||
-Wno-builtin-declaration-mismatch -Wno-format -Wno-missing-parameter-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,7 +88,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-pedantic
|
||||
CSILENCE+= -Wno-pedantic -Wno-misleading-indentation -Wno-unsafe-buffer-usage \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-logical-op-parentheses \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int -Wno-parentheses -Wno-return-type \
|
||||
-Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,7 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-extra-semi-stmt -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-pedantic -Wno-logical-not-parentheses -Wno-implicit-function-declaration \
|
||||
-Wno-incompatible-pointer-types -Wno-int-conversion -Wno-pointer-to-int-cast \
|
||||
-Wno-pointer-integer-compare -Wno-compare-distinct-pointer-types \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int
|
||||
-Wno-incompatible-pointer-types -Wno-int-conversion -Wno-pointer-to-int-cast \
|
||||
-Wno-pointer-integer-compare -Wno-compare-distinct-pointer-types \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int -Wno-missing-parameter-type \
|
||||
-Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,7 +88,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-comma \
|
||||
-Wno-missing-prototypes
|
||||
-Wno-missing-prototypes -Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-3
@@ -39,8 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-pedantic -Wno-error -Wno-implicit-function-declaration -Wno-parentheses \
|
||||
-Wno-return-type -Wno-deprecated-declarations -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int
|
||||
-Wno-return-type -Wno-deprecated-declarations -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int -Wno-missing-parameter-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes -Wno-unsafe-buffer-usage \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int
|
||||
-Wno-implicit-int -Wno-misleading-indentation -Wno-missing-parameter-type \
|
||||
-Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-pedantic -Wno-poison-system-directories
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-unsafe-buffer-usage \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-return-type \
|
||||
-Wno-strict-prototypes -Wno-implicit-int
|
||||
-Wno-strict-prototypes -Wno-implicit-int -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-double-promotion -Wno-float-conversion
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-double-promotion -Wno-float-conversion
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user