From a65fa9a33f6330673573cb26191161a6f418f5ee Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 7 Feb 2024 10:53:41 +0100 Subject: [PATCH] build: fix compiler warning in gl_cv_func_frexpl_works meson build check Otherwise, `CFLAGS='-Wall -Werror' meson build` fails with: ... Command line: `cc ./glib/build/meson-private/tmp7iwplrgi/testfile.c -o ./glib/build/meson-private/tmp7iwplrgi/output.obj -c -O3 -Werror -Wall -D_FILE_OFFSET_BITS=64 -O0 -std=gnu99` -> 1 stderr: ./glib/build/meson-private/tmp7iwplrgi/testfile.c: In function 'main': ./glib/build/meson-private/tmp7iwplrgi/testfile.c:83:21: error: unused variable 'y' [-Werror=unused-variable] 83 | long double y = frexpl (x, &exp); | ^ cc1: all warnings being treated as errors ----------- Checking if "frexpl prototype can be re-listed" compiles: NO glib/gnulib/meson.build:316:2: ERROR: Problem encountered: frexpl() is missing or broken beyond repair, and we have nothing to replace it with --- glib/gnulib/gl_cv_func_frexpl_works/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/gnulib/gl_cv_func_frexpl_works/meson.build b/glib/gnulib/gl_cv_func_frexpl_works/meson.build index 68af20295..bff9cadaa 100644 --- a/glib/gnulib/gl_cv_func_frexpl_works/meson.build +++ b/glib/gnulib/gl_cv_func_frexpl_works/meson.build @@ -86,6 +86,7 @@ int main() long double y = frexpl (x, &exp); /* On machines with IEEE854 arithmetic: x = 1.68105e-4932, exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */ + (void) y; if (exp != LDBL_MIN_EXP - 1) result |= 8; }