From: Bruno Haible Date: Sun, 31 Jan 2021 20:01:44 +0000 (+0100) Subject: build: Avoid a warning in a configure test. X-Git-Tag: v0.21.1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd3e72e612af6690861d564dcc42574955f0158a;p=thirdparty%2Fgettext.git build: Avoid a warning in a configure test. Reported through MacPorts. * gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Avoid shadowing the global 'nan()' function. --- diff --git a/gettext-runtime/m4/intdiv0.m4 b/gettext-runtime/m4/intdiv0.m4 index 0b4dcc209..092a406de 100644 --- a/gettext-runtime/m4/intdiv0.m4 +++ b/gettext-runtime/m4/intdiv0.m4 @@ -1,4 +1,4 @@ -# intdiv0.m4 serial 8 (gettext-0.21.1) +# intdiv0.m4 serial 9 (gettext-0.21.1) dnl Copyright (C) 2002, 2007-2008, 2010-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -47,7 +47,7 @@ sigfpe_handler (int sig) int x = 1; int y = 0; int z; -int nan; +int inan; int main () { @@ -62,7 +62,7 @@ int main () #endif z = x / y; - nan = y / y; + inan = y / y; exit (2); } ]])],