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,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-char-subscripts -Wno-empty-body -Wno-long-long -Wno-parentheses \
|
||||
-Wno-return-type -Wno-unsequenced -Wno-unused-parameter \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-return-type -Wno-unsequenced -Wno-unused-parameter \
|
||||
-Wno-misleading-indentation -Wno-sequence-point -Wno-sign-compare \
|
||||
-Wno-unused-value -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,9 +87,11 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-incompatible-function-pointer-types-strict -Wno-reserved-identifier \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+9
-5
@@ -38,9 +38,11 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-absolute-value -Wno-char-subscripts -Wno-dangling-else -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-implicit-int -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-absolute-value -Wno-char-subscripts -Wno-dangling-else \
|
||||
-Wno-error -Wno-implicit-function-declaration -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-implicit-int -Wno-strict-prototypes \
|
||||
-Wno-builtin-declaration-mismatch -Wno-misleading-indentation \
|
||||
-Wno-sign-compare -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -92,8 +94,10 @@ ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
|
||||
CSILENCE+= -Wno-double-promotion -Wno-float-conversion -Wno-implicit-float-conversion \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-declaration-after-statement
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-declaration-after-statement -Wno-extra-semi-stmt \
|
||||
-Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+8
-6
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-implicit-int -Wno-int-conversion \
|
||||
-Wno-logical-op-parentheses -Wno-overlength-strings -Wno-return-type \
|
||||
-Wno-shift-op-parentheses -Wno-string-plus-int -Wno-unsequenced \
|
||||
-Wno-unused-value -Wno-strict-prototypes
|
||||
-Wno-logical-op-parentheses -Wno-overlength-strings \
|
||||
-Wno-return-type -Wno-shift-op-parentheses -Wno-string-plus-int \
|
||||
-Wno-unsequenced -Wno-unused-value -Wno-strict-prototypes \
|
||||
-Wno-cpp -Wno-int-in-bool-context -Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,9 +88,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-disabled-macro-expansion \
|
||||
-Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-reserved-identifier -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-strict-prototypes -Wno-misleading-indentation \
|
||||
-Wno-multistatement-macros
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,10 +85,12 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-double-promotion -Wno-float-conversion \
|
||||
-Wno-implicit-float-conversion -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-redundant-parens -Wno-shadow \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-implicit-float-conversion -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-redundant-parens -Wno-shadow \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-extra-semi-stmt -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-char-subscripts -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-strict-prototypes -Wno-builtin-declaration-mismatch \
|
||||
-Wno-format-zero-length
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-format-nonliteral -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-format-nonliteral -Wno-poison-system-directories \
|
||||
-Wno-unsafe-buffer-usage -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,8 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-unreachable-code
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-unreachable-code -Wno-unsafe-buffer-usage -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-main -Wno-pedantic -Wno-return-type -Wno-deprecated-non-prototype
|
||||
-Wno-main -Wno-pedantic -Wno-return-type -Wno-deprecated-non-prototype \
|
||||
-Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-strict-prototypes
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-strict-prototypes -Wno-ignored-qualifiers
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +84,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-qual -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-2
@@ -84,8 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-parentheses \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-shift-op-parentheses \
|
||||
-Wno-unused-parameter
|
||||
-Wno-builtin-declaration-mismatch -Wno-misleading-indentation \
|
||||
-Wno-parentheses -Wno-unused-parameter
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow
|
||||
-Wno-extra-semi-stmt -Wno-unknown-warning-option -Wno-unsafe-buffer-usage \
|
||||
-Wno-poison-system-directories -Wno-shadow
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-2
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-keyword-macro -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-keyword-macro -Wno-strict-prototypes -Wno-builtin-declaration-mismatch
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -83,7 +83,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-unused-macros
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-unused-macros \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+5
-5
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-dollar-in-identifier-extension -Wno-null-character \
|
||||
-Wno-null-pointer-subtraction
|
||||
-Wno-misleading-indentation -Wno-pedantic -Wno-null-pointer-subtraction
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,10 +85,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-c99-compat -Wno-comma -Wno-double-promotion -Wno-float-conversion \
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-unreachable-code -Wno-c++98-compat -Wno-old-style-cast \
|
||||
-Wno-zero-as-null-pointer-constant
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-unreachable-code -Wno-c++98-compat -Wno-old-style-cast \
|
||||
-Wno-zero-as-null-pointer-constant -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user