]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a gcc warning at configure time.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Aug 2007 10:16:15 +0000 (10:16 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:01 +0000 (12:15 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/intl.m4

index be9c02aeea76afd402ba7fc4c37c2e44171fa4a2..cf54a3c747efacfab66c384fc11789afcb366e93 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-26  Bruno Haible  <bruno@clisp.org>
+
+       * intl.m4 (gl_INTL_SUBDIR_CORE): Avoid an "unused variable" warning
+       in the _NL_LOCALE_NAME test.
+       Mentioned by Marti Raudsepp <marti@juffo.org>.
+
 2007-06-07  Bruno Haible  <bruno@clisp.org>
 
        * intlmacosx.m4: New file, extracted from gettext.m4.
index e0771d2a04e5688492eff65d968e7949b50c954a..91e66dfaff971b08f02a805586483ecc87c54451 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 5 (gettext-0.16.2)
+# intl.m4 serial 6 (gettext-0.16.2)
 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -209,7 +209,9 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
   AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,
     [AC_TRY_LINK([#include <langinfo.h>
 #include <locale.h>],
-      [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));],
+      [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
+       return !cs;
+      ],
       gt_cv_nl_locale_name=yes,
       gt_cv_nl_locale_name=no)
     ])