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,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-string-plus-int
|
||||
CSILENCE= -Wno-empty-body -Wno-string-plus-int -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,10 +84,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-float-equal -Wno-format-nonliteral \
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-declaration-after-statement
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-declaration-after-statement -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,7 +84,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-vla
|
||||
-Wno-poison-system-directories -Wno-vla -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,9 +39,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-logical-op-parentheses -Wno-main -Wno-parentheses -Wno-pedantic \
|
||||
-Wno-return-type -Wno-shift-op-parentheses -Wno-deprecated-non-prototype \
|
||||
-Wno-unused-parameter
|
||||
-Wno-logical-op-parentheses -Wno-main -Wno-parentheses -Wno-pedantic \
|
||||
-Wno-return-type -Wno-shift-op-parentheses -Wno-builtin-declaration-mismatch \
|
||||
-Wno-deprecated-non-prototype -Wno-unused-parameter
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,8 +87,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-unknown-warning-option -Wno-unsafe-buffer-usage \
|
||||
-Wno-strict-prototypes
|
||||
#
|
||||
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-implicit-int -Wno-main -Wno-deprecated-non-prototype
|
||||
-Wno-implicit-int -Wno-main -Wno-deprecated-non-prototype \
|
||||
-Wno-builtin-declaration-mismatch -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -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,8 +39,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-char-subscripts -Wno-empty-body \
|
||||
-Wno-logical-op-parentheses -Wno-parentheses -Wno-pointer-sign \
|
||||
-Wno-sign-compare -Wno-trigraphs
|
||||
-Wno-logical-op-parentheses -Wno-parentheses -Wno-pointer-sign \
|
||||
-Wno-misleading-indentation -Wno-unused-value \
|
||||
-Wno-sign-compare -Wno-trigraphs
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,9 +87,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-extra-semi -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-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-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-2
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-shift-op-parentheses -Wno-unused-value -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-shift-op-parentheses -Wno-unused-value -Wno-strict-prototypes \
|
||||
-Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion
|
||||
-Wno-sign-conversion -Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
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,8 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -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-extra-semi-stmt -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -83,7 +83,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-missing-variable-declarations -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-strict-prototypes
|
||||
CSILENCE= -Wno-strict-prototypes -Wno-stringop-truncation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -100,7 +100,9 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-padded -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-padded -Wno-poison-system-directories \
|
||||
-Wno-disabled-macro-expansion -Wno-extra-semi-stmt \
|
||||
-Wno-unsafe-buffer-usage -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-3
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded -Wno-declaration-after-statement \
|
||||
-Wno-documentation-unknown-command
|
||||
-Wno-missing-variable-declarations -Wno-padded -Wno-declaration-after-statement \
|
||||
-Wno-documentation-unknown-command -Wno-extra-semi-stmt -Wno-reserved-identifier \
|
||||
-Wno-reserved-macro-identifier -Wno-undef -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-1
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-float-conversion -Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-implicit-int-float-conversion -Wno-shorten-64-to-32
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-2
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-gnu-empty-initializer -Wno-missing-field-initializers \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-misleading-indentation -Wno-pedantic -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -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
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-comment -Wno-dollar-in-identifier-extension -Wno-string-plus-int \
|
||||
-Wno-unused-parameter -Wno-deprecated-non-prototype
|
||||
-Wno-unused-parameter -Wno-deprecated-non-prototype \
|
||||
-Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,9 +86,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-date-time -Wno-float-conversion \
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-sign-conversion -Wno-declaration-after-statement
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-sign-conversion -Wno-declaration-after-statement \
|
||||
-Wno-reserved-identifier -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-1
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-strict-prototypes -Wno-incompatible-function-pointer-types-strict \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-1
@@ -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-sign-conversion -Wno-unused-macros
|
||||
-Wno-poison-system-directories -Wno-sign-conversion -Wno-unused-macros \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user