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
+8
-4
@@ -39,8 +39,11 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-unsequenced -Wno-incompatible-pointer-types \
|
||||
-Wno-bitwise-instead-of-logical -Wno-strict-prototypes -Wno-implicit-int
|
||||
-Wno-unsequenced -Wno-incompatible-pointer-types \
|
||||
-Wno-bitwise-instead-of-logical -Wno-strict-prototypes \
|
||||
-Wno-implicit-int -Wno-builtin-declaration-mismatch \
|
||||
-Wno-misleading-indentation -Wno-parentheses -Wno-return-type \
|
||||
-Wno-sequence-point -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -99,8 +102,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-float-equal \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+7
-6
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
|
||||
-Wno-empty-body -Wno-invalid-source-encoding -Wno-main -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-deprecated-non-prototype -Wno-implicit-int \
|
||||
-Wno-unused-parameter
|
||||
-Wno-empty-body -Wno-invalid-source-encoding -Wno-main -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int -Wno-misleading-indentation -Wno-missing-parameter-type \
|
||||
-Wno-return-type -Wno-unused-parameter
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,9 +88,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes -Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-2
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-main -Wno-deprecated-non-prototype -Wno-implicit-int
|
||||
CSILENCE= -Wno-main -Wno-deprecated-non-prototype -Wno-implicit-int \
|
||||
-Wno-missing-parameter-type -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories
|
||||
-Wno-poison-system-directories -Wno-unsafe-buffer-usage \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-4
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-c99-extensions
|
||||
CSILENCE= -Wno-c99-extensions -Wno-pedantic
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,9 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-bad-function-cast -Wno-double-promotion -Wno-float-conversion \
|
||||
-Wno-format-nonliteral -Wno-implicit-float-conversion \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion
|
||||
-Wno-format-nonliteral -Wno-implicit-float-conversion \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+11
-7
@@ -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
|
||||
#
|
||||
|
||||
+4
-2
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-main-return-type -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-main-return-type -Wno-strict-prototypes \
|
||||
-Wno-misleading-indentation -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -83,7 +84,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-implicit-int-conversion -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-implicit-int-conversion -Wno-poison-system-directories \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-dangling-else
|
||||
CSILENCE= -Wno-dangling-else -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -83,7 +83,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-comma -Wno-poison-system-directories \
|
||||
-Wno-extra-semi-stmt -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-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-strict-prototypes -Wno-implicit-int
|
||||
-Wno-shift-op-parentheses -Wno-strict-prototypes -Wno-implicit-int \
|
||||
-Wno-implicit-fallthrough -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-array-bounds-pointer-arithmetic -Wno-comma \
|
||||
-Wno-implicit-int-conversion -Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-shorten-64-to-32
|
||||
-Wno-implicit-int-conversion -Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-shorten-64-to-32 -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+7
-4
@@ -38,8 +38,10 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-pointer-bool-conversion -Wno-unused-parameter -Wno-main -Wno-implicit-function-declaration \
|
||||
-Wno-int-conversion -Wno-gnu-line-marker
|
||||
CSILENCE= -Wno-pointer-bool-conversion -Wno-unused-parameter -Wno-main \
|
||||
-Wno-implicit-function-declaration -Wno-address \
|
||||
-Wno-builtin-declaration-mismatch -Wno-int-conversion \
|
||||
-Wno-gnu-line-marker
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +87,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-disabled-macro-expansion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-poison-system-directories -Wno-unused-macros
|
||||
-Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-poison-system-directories -Wno-unused-macros \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-format-security \
|
||||
-Wno-int-to-pointer-cast -Wno-int-conversion -Wno-unused-parameter \
|
||||
-Wno-incompatible-pointer-types -Wno-implicit-int -Wno-unused-value \
|
||||
-Wno-logical-op-parentheses
|
||||
-Wno-int-to-pointer-cast -Wno-int-conversion -Wno-unused-parameter \
|
||||
-Wno-incompatible-pointer-types -Wno-implicit-int -Wno-unused-value \
|
||||
-Wno-builtin-declaration-mismatch -Wno-parentheses -Wno-return-type \
|
||||
-Wno-logical-op-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,9 +88,11 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-cast-align -Wno-unreachable-code
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-incompatible-function-pointer-types-strict -Wno-reserved-identifier \
|
||||
-Wno-unknown-warning-option -Wno-unsafe-buffer-usage \
|
||||
-Wno-cast-align -Wno-unreachable-code
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-string-plus-int -Wno-switch-bool
|
||||
CSILENCE= -Wno-string-plus-int -Wno-switch-bool -Wno-array-bounds \
|
||||
-Wno-stringop-overread
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -83,7 +84,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-unsafe-buffer-usage -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-trigraphs -Wno-sign-compare -Wno-string-plus-int -Wno-switch-bool -Wno-implicit-int
|
||||
CSILENCE= -Wno-trigraphs -Wno-sign-compare -Wno-string-plus-int -Wno-switch-bool \
|
||||
-Wno-implicit-int -Wno-cast-function-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-unused-macros -Wno-sign-conversion \
|
||||
-Wno-cast-function-type
|
||||
-Wno-cast-function-type -Wno-reserved-macro-identifier -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-trigraphs -Wno-deprecated-non-prototype -Wno-unused-parameter
|
||||
CSILENCE= -Wno-trigraphs -Wno-deprecated-non-prototype -Wno-unused-parameter \
|
||||
-Wno-misleading-indentation -Wno-missing-parameter-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-padded -Wno-poison-system-directories -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion
|
||||
-Wno-sign-conversion -Wno-reserved-macro-identifier -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-misleading-indentation -Wno-sign-compare
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-conditional-uninitialized -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion -Wno-tautological-value-range-compare
|
||||
-Wno-sign-conversion -Wno-tautological-value-range-compare \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user