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,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-extra-semi \
|
||||
-Wno-strict-prototypes -Wno-implicit-int
|
||||
-Wno-strict-prototypes -Wno-implicit-int -Wno-pedantic -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -39,7 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-int-to-pointer-cast -Wno-logical-op-parentheses -Wno-deprecated-non-prototype
|
||||
-Wno-int-to-pointer-cast -Wno-logical-op-parentheses -Wno-deprecated-non-prototype \
|
||||
-Wno-builtin-declaration-mismatch -Wno-misleading-indentation \
|
||||
-Wno-missing-parameter-type -Wno-parentheses -Wno-return-type \
|
||||
-Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +88,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unused-macros
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unused-macros -Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-2
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int
|
||||
-Wno-implicit-int -Wno-builtin-declaration-mismatch -Wno-misleading-indentation \
|
||||
-Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-shorten-64-to-32
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-shorten-64-to-32 \
|
||||
-Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-2
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int -Dunix=1 \
|
||||
-Wno-string-plus-int -Wno-strict-prototypes
|
||||
-Wno-string-plus-int -Wno-strict-prototypes -Wno-return-type \
|
||||
-Wno-builtin-declaration-mismatch -Wno-format-contains-nul
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-array-bounds-pointer-arithmetic -Wno-format-nonliteral \
|
||||
-Wno-poison-system-directories
|
||||
-Wno-poison-system-directories -Wno-unknown-warning-option \
|
||||
-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-deprecated-non-prototype
|
||||
-Wno-deprecated-non-prototype -Wno-maybe-uninitialized -Wno-misleading-indentation \
|
||||
-Wno-missing-parameter-type -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,9 +86,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-conditional-uninitialized -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unused-macros
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unused-macros -Wno-unsafe-buffer-usagen -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+7
-6
@@ -39,10 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-incompatible-library-redeclaration -Wno-return-type -Wno-string-plus-int \
|
||||
-Wno-unknown-escape-sequence -Wno-deprecated-declarations \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int -Wno-incompatible-pointer-types \
|
||||
-Wno-unused-value
|
||||
-Wno-incompatible-library-redeclaration -Wno-return-type -Wno-string-plus-int \
|
||||
-Wno-unknown-escape-sequence -Wno-deprecated-declarations \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int -Wno-incompatible-pointer-types \
|
||||
-Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,8 +88,9 @@ 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-pedantic \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-for-loop-analysis -Wno-unused-value \
|
||||
-Wno-deprecated-non-prototype -Wno-strict-prototypes -Wno-implicit-int
|
||||
-Wno-deprecated-non-prototype -Wno-strict-prototypes -Wno-implicit-int \
|
||||
-Wno-int-in-bool-context -Wno-maybe-uninitialized -Wno-return-type
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +86,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-conditional-uninitialized
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-conditional-uninitialized -Wno-misleading-indentation \
|
||||
-Wno-unsafe-buffer-usage -Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user