mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
5525672a5f
Otherwise, `CFLAGS='-Wall -Werror' meson build` fails detection with: Running compile: Working directory: /data/src/glib/build/meson-private/tmpoozk2y4b Code: #include <stdio.h> #include <string.h> static char buf[100]; static double zero = 0.0; int main () { if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0 || (strcmp (buf, " inf") != 0 && strcmp (buf, " infinity") != 0)) return 1; return 0; } ----------- Command line: `cc /data/src/glib/build/meson-private/tmpoozk2y4b/testfile.c -o /data/src/glib/build/meson-private/tmpoozk2y4b/output.exe -Werror -Wall -D_FILE_OFFSET_BITS=64 -O0 -std=gnu99` -> 1 stderr: /data/src/glib/build/meson-private/tmpoozk2y4b/testfile.c: In function 'main': /data/src/glib/build/meson-private/tmpoozk2y4b/testfile.c:8:21: error: too many arguments for format [-Werror=format-extra-args] 8 | if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0 | ^~~~~~~ cc1: all warnings being treated as errors ----------- Could not compile test file /data/src/glib/build/meson-private/tmpoozk2y4b/testfile.c: 1 Checking if "printf supports the zero flag correctly" runs: DID NOT COMPILE |
||
---|---|---|
.. | ||
meson.build |