commit: ee5ab4ca94fb308068d24291268abf52b9644c82
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 9 03:30:42 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 9 03:31:48 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ee5ab4ca
install-qa-check.d/90gcc-warnings: add -Wint-to-void-pointer-cast
We already have the other -Wint-conversions and this complements
-Wpointer-to-int-cast and -Wint-to-pointer-cast. The motivation
for all of these is finding things which are likely to break
across bitness.
Signed-off-by: Sam James <sam <AT> gentoo.org>
NEWS | 1 +
bin/install-qa-check.d/90gcc-warnings | 2 ++
2 files changed, 3 insertions(+)
diff --git a/NEWS b/NEWS
index f8441b6ec..cf3487e4b 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ Features:
* -Wint-conversion
* -Wint-to-pointer-cast
* -Wpointer-to-int-cast
+ * -Wint-to-void-pointer-cast
* install-qa-check.d: 90gcc-warnings: Always die on
-Wimplicit-function-declaration
and remove bin/check-implicit-pointer-usage.py of dubious licencing (it was
diff --git a/bin/install-qa-check.d/90gcc-warnings
b/bin/install-qa-check.d/90gcc-warnings
index 2edabcde7..cdffcd029 100644
--- a/bin/install-qa-check.d/90gcc-warnings
+++ b/bin/install-qa-check.d/90gcc-warnings
@@ -64,6 +64,8 @@ gcc_warn_check() {
'warning: .*\[-Wint-conversion\]'
# warning: cast to ... from integer of different size
(or smaller size)
'warning: .*\[-Wint-to-pointer-cast\]'
+ # warning: cast to ... from (smaller) integer type
+ 'warning: .*\[-Wint-to-void-pointer-cast\]'
# warning: cast from ... to integer of different size
'warning: .*\[-Wpointer-to-int-cast\]'