summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2024-03-22 14:15:56 +1100
committerMatthew Waters <matthew@centricular.com>2024-03-22 14:15:56 +1100
commit613335f5dbb42725cbce03706df18391838ad93a (patch)
treeb2e8b1739beb4c6bde7174744e607c050e848de9
parent238f60921285cef8c2f04953663c64544691f61e (diff)
glib: disable error for int-conversion introduced by default with clang 151.24.1
macos/ios now ship clang 15 which flipped some default errors for some warnings around int->pointer conversion that currently fail in glib to the version we ship here. Unflip those errors. https://reviews.llvm.org/D129881 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1422>
-rw-r--r--recipes/build-tools/glib-tools.recipe3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes/build-tools/glib-tools.recipe b/recipes/build-tools/glib-tools.recipe
index 9f65ae83..620fe9ec 100644
--- a/recipes/build-tools/glib-tools.recipe
+++ b/recipes/build-tools/glib-tools.recipe
@@ -26,3 +26,6 @@ class Recipe(recipe.Recipe):
# Want secure versions of stdlib functions. Glib already defines
# _WIN32_WINNT, so undefine it on the cmdline to avoid warnings
self.append_env('CFLAGS', '-DMINGW_HAS_SECURE_API=1', '-U_WIN32_WINNT')
+
+ if self.config.platform == Platform.DARWIN:
+ self.append_env('CFLAGS', '-Wno-error=int-conversion')