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
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-newline-eof -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-newline-eof -Wno-strict-prototypes -Wno-maybe-uninitialized \
|
||||
-Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-conditional-uninitialized -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bool-operation -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-implicit-int
|
||||
-Wno-implicit-int
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +84,7 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-cast-align -Wno-poison-system-directories -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-dollar-in-identifier-extension \
|
||||
-Wno-empty-body -Wno-implicit-int -Wno-incompatible-pointer-types \
|
||||
-Wno-int-conversion -Wno-newline-eof -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-unsequenced
|
||||
-Wno-empty-body -Wno-implicit-int -Wno-incompatible-pointer-types \
|
||||
-Wno-int-conversion -Wno-newline-eof -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-unsequenced -Wno-misleading-indentation \
|
||||
-Wno-sequence-point -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,8 +88,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-format-nonliteral \
|
||||
-Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion -Wno-unreachable-code
|
||||
-Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion \
|
||||
-Wno-unreachable-code -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+14
-11
@@ -39,13 +39,14 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-bool-operation \
|
||||
-Wno-conditional-type-mismatch -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-incompatible-pointer-types -Wno-logical-not-parentheses \
|
||||
-Wno-logical-op-parentheses -Wno-parentheses -Wno-shift-op-parentheses \
|
||||
-Wno-sign-compare -Wno-unsequenced -Wno-unused-parameter \
|
||||
-Wno-deprecated-non-prototype -Wno-return-type -Wno-pointer-type-mismatch \
|
||||
-Wno-int-conversion
|
||||
-Wno-conditional-type-mismatch -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-incompatible-pointer-types -Wno-logical-not-parentheses \
|
||||
-Wno-logical-op-parentheses -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-sign-compare -Wno-unsequenced \
|
||||
-Wno-unused-parameter -Wno-deprecated-non-prototype -Wno-return-type \
|
||||
-Wno-pointer-type-mismatch -Wno-int-conversion -Wno-unused-value \
|
||||
-Wno-int-in-bool-context -Wno-sequence-point -Wno-strict-aliasing
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -91,10 +92,12 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-dollar-in-identifier-extension \
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes -Wno-shorten-64-to-32
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes -Wno-shorten-64-to-32 \
|
||||
-Wno-cast-function-type-strict -Wno-reserved-identifier \
|
||||
-Wno-reserved-macro-identifier -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-1
@@ -83,7 +83,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-float-conversion -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-float-conversion -Wno-poison-system-directories \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-deprecated-non-prototype -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-deprecated-non-prototype -Wno-strict-prototypes \
|
||||
-Wno-maybe-uninitialized
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,9 +85,12 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-conditional-uninitialized -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-redundant-parens -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-unreachable-code
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-redundant-parens -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-cast-function-type-strict -Wno-extra-semi-stmt \
|
||||
-Wno-incompatible-function-pointer-types-strict \
|
||||
-Wno-misleading-indentation -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage -Wno-unreachable-code
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,9 +84,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variae-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-missing-variable-declarations \
|
||||
-Wno-unknown-warning-option
|
||||
-Wno-missing-prototypes -Wno-missing-variae-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-missing-variable-declarations -Wno-unknown-warning-option \
|
||||
-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-implicit-int \
|
||||
-Wno-main -Wno-deprecated-non-prototype -Wno-unused-parameter
|
||||
-Wno-main -Wno-deprecated-non-prototype -Wno-unused-parameter \
|
||||
-Wno-builtin-declaration-mismatch
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +86,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-double-promotion -Wno-float-conversion \
|
||||
-Wno-implicit-float-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-newline-eof -Wno-pedantic -Wno-poison-system-directories
|
||||
-Wno-implicit-float-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-newline-eof -Wno-pedantic -Wno-poison-system-directories \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,8 +88,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-sign-conversion
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-extra-semi-stmt -Wno-unsafe-buffer-usage \
|
||||
-Wno-shadow -Wno-sign-conversion
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-3
@@ -84,9 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 \
|
||||
-Wno-float-conversion -Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-shadow -Wno-shift-sign-overflow
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 \
|
||||
-Wno-float-conversion -Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-shadow -Wno-shift-sign-overflow -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+6
-5
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-parentheses -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-parentheses -Wno-strict-prototypes \
|
||||
-Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,10 +86,10 @@ 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-shadow -Wno-shorten-64-to-32 \
|
||||
-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-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-comment -Wno-empty-body -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-comment -Wno-empty-body -Wno-strict-prototypes \
|
||||
-Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,9 +85,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-documentation -Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-unreachable-code-loop-increment -Wno-unused-macros
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-unreachable-code-loop-increment -Wno-unused-macros \
|
||||
-Wno-extra-semi-stmt -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,8 +38,9 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-absolute-value -Wno-logical-op-parentheses -Wno-shift-op-parentheses \
|
||||
-Wno-strict-prototypes
|
||||
CSILENCE= -Wno-absolute-value -Wno-logical-op-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-strict-prototypes \
|
||||
-Wno-parentheses -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-conditional-uninitialized -Wno-float-conversion \
|
||||
-Wno-format-nonliteral -Wno-poison-system-directories -Wno-shorten-64-to-32
|
||||
-Wno-format-nonliteral -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-string-plus-int -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-string-plus-int -Wno-strict-prototypes \
|
||||
-Wno-misleading-indentation -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-strict-prototypes
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-parentheses -Wno-unused-variable
|
||||
CSILENCE= -Wno-parentheses -Wno-unused-variable \
|
||||
-Wno-misleading-indentation -Wno-stringop-truncation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,10 +85,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-qual -Wno-comma -Wno-disabled-macro-expansion \
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user