Skip to content

Commit

Permalink
gtk4: Disable integer conversion warning as error
Browse files Browse the repository at this point in the history
clang 15+ has started to treated int-conversion as error and pipeline
cache code added snippets[1] in gtk4 which causes this error

[1] https://gitlab.gnome.org/GNOME/gtk/-/commit/684a015c9852ede9d57103852217b428546fe472
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Aug 20, 2023
1 parent 95ebfda commit 2e4dcca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ CXXFLAGS:pn-libeigen:append:toolchain-clang:powerpc = " -DEIGEN_ALTIVEC_DISABLE_
CXXFLAGS:pn-opengl-es-cts:append:toolchain-clang = " -Wno-error=unsafe-buffer-usage -Wno-error=cast-function-type-strict"
CXXFLAGS:pn-vulkan-cts:append:toolchain-clang = " -Wno-error=unsafe-buffer-usage -Wno-error=cast-function-type-strict"

# Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/6033
CFLAGS:pn-gtk4:append:toolchain-clang = " -Wno-error=int-conversion"

# usr/include/glib-2.0/glib/glib-autocleanups.h:49:1: error: cast from 'void (*)(void)' to 'GDestroyNotify'
# (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
CFLAGS:pn-pidgin-sipe:append:toolchain-clang = " -Wno-error=cast-function-type-strict"
Expand Down

0 comments on commit 2e4dcca

Please sign in to comment.