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,8 +38,9 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-invalid-source-encoding \
|
||||
-Wno-invalid-utf8 -Wno-strict-prototypes -Wno-unknown-warning-option
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-invalid-source-encoding -Wno-invalid-utf8 -Wno-strict-prototypes \
|
||||
-Wno-unknown-warning-option -Wno-empty-body -Wno-maybe-uninitialized
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,7 +89,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-conditional-uninitialized -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories
|
||||
-Wno-poison-system-directories -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -83,7 +83,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-comma -Wno-missing-prototypes
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-comma -Wno-missing-prototypes \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+5
-3
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-return-type -Wno-unsequenced -Wno-strict-prototypes -Wno-implicit-int
|
||||
-Wno-return-type -Wno-unsequenced -Wno-strict-prototypes \
|
||||
-Wno-implicit-int -Wno-misleading-indentation -Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,8 +89,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-double-promotion -Wno-float-conversion -Wno-implicit-float-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,8 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-keyword-macro \
|
||||
-Wno-shift-op-parentheses -Wno-unused-parameter -Wno-implicit-int \
|
||||
-Wno-deprecated-non-prototype -Wno-strict-prototypes -Wno-unsequenced
|
||||
-Wno-shift-op-parentheses -Wno-unused-parameter -Wno-implicit-int \
|
||||
-Wno-deprecated-non-prototype -Wno-strict-prototypes -Wno-unsequenced \
|
||||
-Wno-builtin-declaration-mismatch -Wno-parentheses -Wno-return-type \
|
||||
-Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,7 +88,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes -Wno-unused-macros
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes -Wno-unused-macros \
|
||||
-Wno-misleading-indentation -Wno-unknown-warning-option
|
||||
#
|
||||
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-strict-prototypes -Wno-deprecated-declarations -Wno-implicit-int
|
||||
-Wno-strict-prototypes -Wno-deprecated-declarations -Wno-implicit-int \
|
||||
-Wno-int-in-bool-context -Wno-misleading-indentation -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,7 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+9
-7
@@ -39,9 +39,11 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-infinite-recursion -Wno-return-type -Wno-string-plus-int \
|
||||
-Wno-unsequenced -Wno-unused-parameter -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int
|
||||
-Wno-infinite-recursion -Wno-return-type -Wno-string-plus-int \
|
||||
-Wno-unsequenced -Wno-unused-parameter -Wno-deprecated-non-prototype \
|
||||
-Wno-builtin-declaration-mismatch -Wno-missing-parameter-type \
|
||||
-Wno-multistatement-macros -Wno-sequence-point -Wno-unused-value \
|
||||
-Wno-implicit-int
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,10 +89,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-c99-extensions -Wno-double-promotion -Wno-float-conversion \
|
||||
-Wno-implicit-float-conversion -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-float-conversion -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
|
||||
#
|
||||
|
||||
+5
-3
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-shift-op-parentheses -Wno-strict-prototypes \
|
||||
-Wno-implicit-int
|
||||
-Wno-misleading-indentation -Wno-parentheses -Wno-return-type \
|
||||
-Wno-unused-value -Wno-implicit-int
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,8 +89,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion
|
||||
-Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion \
|
||||
-Wno-extra-semi-stmt -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-conditional-uninitialized -Wno-disabled-macro-expansion \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-reserved-macro-identifier
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -83,7 +83,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-poison-system-directories -Wno-sign-conversion
|
||||
CSILENCE+= -Wno-comma -Wno-poison-system-directories -Wno-sign-conversion \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,7 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-date-time -Wno-double-promotion \
|
||||
-Wno-poison-system-directories -Wno-unreachable-code -Wno-c99-compat
|
||||
-Wno-poison-system-directories -Wno-unreachable-code -Wno-c99-compat \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,8 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-int-to-pointer-cast -Wno-empty-body -Wno-deprecated-non-prototype\
|
||||
-Wno-implicit-int
|
||||
-Wno-int-to-pointer-cast -Wno-empty-body -Wno-deprecated-non-prototype\
|
||||
-Wno-implicit-int -Wno-missing-parameter-type -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +85,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-bad-function-cast -Wno-pedantic -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-bad-function-cast -Wno-pedantic -Wno-poison-system-directories \
|
||||
-Wno-unsafe-buffer-usage -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user