diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-09-18 17:42:59 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-09-19 07:35:49 +0200 |
commit | d02310ba14a4c400eef4821c99287c797d376714 (patch) | |
tree | bda8048f930a6125408ddbb86beb9396dce8672f /solenv | |
parent | d500848976b6244048684a9972322b582559910a (diff) |
Remaining GCC -Wcast-function-type issues
As Clang supports that warning now too, lots of occurrences have meanwhile been
cleaned up for good (0c29c417ef3f0b749042e5a461abae9c36cf655b "Avoid
-Werror,-Wcast-function-type-mismatch", 1344e6261a1d856c71eca1e0cc29215a586bf335
"Avoid -Werror,-Wcast-function-type-mismatch",
85a2bb9f52a0d834b02681344ce56e0b091e1abd "Avoid
-Werror,-Wcast-function-type-mismatch", etc.), so
ce99754e9b5b954be4360f39356ed7198b298265 "Globally disable -Wcast-function-type
new with upcoming GCC 8" in solenv/gbuild/platform/com_GCC_defs.mk should no
longer be necessary.
One remaining issue I encountered was dae7304df68493afcf6e9c9e490d65ea20d8211f
"Silence Clang 19 trunk -Werror,-Wcast-function-type-mismatch", where GCC needs
a different way for silencing the warnings in pyuno/source/module/ than had been
used there for Clang.
Change-Id: I5d0404b957d798114051209c31e022a898cf91f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173623
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 29a1942faa7b..528e45630b25 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -146,13 +146,6 @@ gb_CXXFLAGS_COMMON += \ -Wunused-const-variable=1 endif -# GCC 8 -Wcast-function-type (included in -Wextra) unhelpfully even warns on reinterpret_cast -# between incompatible function types: -ifeq ($(shell expr '$(GCC_VERSION)' '>=' 800),1) -gb_CXXFLAGS_COMMON += \ - -Wno-cast-function-type -endif - # If CC or CXX already include -fvisibility=hidden, don't duplicate it ifeq (,$(filter -fvisibility=hidden,$(CC))) gb_VISIBILITY_FLAGS := -fvisibility=hidden |