glib: Work around AppleClang + -Werror test build failure
- Oct 30, 2023
-
-
See: https://gitlab.gnome.org/GNOME/glib/-/issues/2902 Part-of: <!1267>
-
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
gitlab.freedesktop.org will be unavailable for up to a week starting March 16th, due to our ongoing infrastructure move. You can follow our planning tracker at https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/2076
Hi,
This MR is to work around an error I found with Xcode 13.2.1 when building glib. The error comes from using function prototypes that are conditionally defined, and this one in particular isn't included in the test preamble. That is not allowed, and is enforced by the combination of -std=gnu99
and -Werror
.
See: https://gitlab.gnome.org/GNOME/glib/-/issues/2902 Part-of: <!1267>