From: Bruno Haible Date: Sun, 26 Aug 2007 10:16:15 +0000 (+0000) Subject: Avoid a gcc warning at configure time. X-Git-Tag: v0.17~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d45e99baf12ec7c33f92bd7c6927926c6f1a9cb;p=thirdparty%2Fgettext.git Avoid a gcc warning at configure time. --- diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index be9c02aee..cf54a3c74 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,9 @@ +2007-08-26 Bruno Haible + + * intl.m4 (gl_INTL_SUBDIR_CORE): Avoid an "unused variable" warning + in the _NL_LOCALE_NAME test. + Mentioned by Marti Raudsepp . + 2007-06-07 Bruno Haible * intlmacosx.m4: New file, extracted from gettext.m4. diff --git a/gettext-runtime/m4/intl.m4 b/gettext-runtime/m4/intl.m4 index e0771d2a0..91e66dfaf 100644 --- a/gettext-runtime/m4/intl.m4 +++ b/gettext-runtime/m4/intl.m4 @@ -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 #include ], - [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) ])