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-comment -Wno-dangling-else -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-incompatible-pointer-types \
|
||||
-Wno-parentheses -Wno-trigraphs -Wno-newline-eof
|
||||
-Wno-implicit-function-declaration -Wno-incompatible-pointer-types \
|
||||
-Wno-parentheses -Wno-trigraphs -Wno-newline-eof \
|
||||
-Wno-builtin-declaration-mismatch -Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,8 +87,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-format-nonliteral -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion \
|
||||
-Wno-misleading-indentation -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+7
-3
@@ -38,8 +38,10 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-dollar-in-identifier-extension -Wno-gnu-zero-variadic-macro-arguments \
|
||||
-Wno-implicit-int -Wno-int-conversion -Wno-main -Wno-newline-eof
|
||||
CSILENCE= -Wno-dollar-in-identifier-extension \
|
||||
-Wno-gnu-zero-variadic-macro-arguments -Wno-implicit-int \
|
||||
-Wno-int-conversion -Wno-main -Wno-newline-eof \
|
||||
-Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +87,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-float-equal -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-declaration-after-statement
|
||||
-Wno-poison-system-directories -Wno-declaration-after-statement \
|
||||
-Wno-reserved-identifier -Wno-reserved-macro-identifier \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-empty-body -Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow
|
||||
-Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-unused-macros
|
||||
-Wno-poison-system-directories -Wno-unused-macros \
|
||||
-Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+13
-8
@@ -39,10 +39,12 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-incompatible-function-pointer-types -Wno-incompatible-pointer-types \
|
||||
-Wno-int-conversion -Wno-missing-field-initializers -Wno-parentheses \
|
||||
-Wno-pointer-sign -Wno-return-type -Wno-unused-parameter -Wno-implicit-int \
|
||||
-Wno-deprecated-non-prototype
|
||||
-Wno-incompatible-function-pointer-types \
|
||||
-Wno-incompatible-pointer-types -Wno-int-conversion \
|
||||
-Wno-missing-field-initializers -Wno-parentheses \
|
||||
-Wno-pointer-sign -Wno-return-type -Wno-unused-parameter \
|
||||
-Wno-implicit-int -Wno-deprecated-non-prototype \
|
||||
-Wno-misleading-indentation -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,10 +90,13 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-documentation -Wno-extra-semi -Wno-implicit-int \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-declaration-after-statement -Wno-implicit-int-conversion
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-declaration-after-statement -Wno-implicit-int-conversion \
|
||||
-Wno-extra-semi-stmt -Wno-incompatible-function-pointer-types-strict \
|
||||
-Wno-reserved-identifier -Wno-reserved-macro-identifier \
|
||||
-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-implicit-int \
|
||||
-Wno-return-type -Wno-unused-parameter -Wno-deprecated-non-prototype
|
||||
-Wno-return-type -Wno-unused-parameter -Wno-deprecated-non-prototype
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -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-empty-body -Wno-int-conversion -Wno-logical-op-parentheses
|
||||
CSILENCE= -Wno-empty-body -Wno-int-conversion -Wno-logical-op-parentheses \
|
||||
-Wno-misleading-indentation -Wno-parentheses -Wno-sign-compare
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-declaration-after-statement
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-declaration-after-statement -Wno-implicit-fallthrough \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-1
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-date-time -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-format-extra-args -Wno-keyword-macro -Wno-parentheses \
|
||||
-Wno-unused-parameter -Wno-deprecated-non-prototype -Wno-strict-prototypes
|
||||
-Wno-unused-parameter -Wno-deprecated-non-prototype \
|
||||
-Wno-strict-prototypes -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,9 +86,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-class-varargs -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-unused-macros -Wno-declaration-after-statement
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-unused-macros -Wno-declaration-after-statement \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-2
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-int-in-bool-context -Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +84,8 @@ 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-poison-system-directories -Wno-shorten-64-to-32 \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-redundant-parens
|
||||
-Wno-poison-system-directories -Wno-redundant-parens \
|
||||
-Wno-reserved-identifier -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user