]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Avoid a warning in a configure test.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2021 20:01:44 +0000 (21:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
Reported through MacPorts.

* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Avoid shadowing the global 'nan()'
function.

gettext-runtime/m4/intdiv0.m4

index 0b4dcc2094d9d268c1ec3b7ebee301416649279f..092a406de25c1537fc80928c17f9682ee9225caf 100644 (file)
@@ -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);
 }
 ]])],