]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid compiler warnings.
authorBruno Haible <bruno@clisp.org>
Mon, 28 Aug 2006 13:12:46 +0000 (13:12 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:57 +0000 (12:13 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/codeset.m4
gettext-runtime/m4/inttypes_h.m4
gettext-runtime/m4/stdint_h.m4

index 58bc3da5dfb5d7ae688cd7ab6f85156b6858b6c1..21c3e6b0ead9c5742d75aac70c31444cab6f7641 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-22  Eric Blake  <ebb9@byu.net>
+
+       * stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
+       * inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
+       * codeset.m4 (AM_LANGINFO_CODESET): Likewise.
+
 2006-08-23  Bruno Haible <bruno@clisp.org>
 
        * lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
index a6e67ec498ff4619fc2c5d5be2c27a2fa5630e8a..55f50a13d634a06a2bec2ac3e25a81f2d25db6ab 100644 (file)
@@ -1,5 +1,5 @@
-# codeset.m4 serial AM1 (gettext-0.10.40)
-dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+# codeset.m4 serial 2 (gettext-0.15.1)
+dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -10,7 +10,7 @@ AC_DEFUN([AM_LANGINFO_CODESET],
 [
   AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
     [AC_TRY_LINK([#include <langinfo.h>],
-      [char* cs = nl_langinfo(CODESET);],
+      [char* cs = nl_langinfo(CODESET); return !cs;],
       am_cv_langinfo_codeset=yes,
       am_cv_langinfo_codeset=no)
     ])
index a5d075d96875a5e9f432467c3b84054efbf59379..edc8ecb2db55a21967c717bcf8fec96c5c44e7cb 100644 (file)
@@ -1,5 +1,5 @@
-# inttypes_h.m4 serial 6
-dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+# inttypes_h.m4 serial 7
+dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -15,7 +15,7 @@ AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
   [AC_TRY_COMPILE(
     [#include <sys/types.h>
 #include <inttypes.h>],
-    [uintmax_t i = (uintmax_t) -1;],
+    [uintmax_t i = (uintmax_t) -1; return !i;],
     gl_cv_header_inttypes_h=yes,
     gl_cv_header_inttypes_h=no)])
   if test $gl_cv_header_inttypes_h = yes; then
index 3355f35aa3ffef364fc812923db663ff1564292a..db9a8ac4c2372145b37af9fc52d395f8eba17ef7 100644 (file)
@@ -1,5 +1,5 @@
-# stdint_h.m4 serial 5
-dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+# stdint_h.m4 serial 6
+dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -15,7 +15,7 @@ AC_DEFUN([gl_AC_HEADER_STDINT_H],
   [AC_TRY_COMPILE(
     [#include <sys/types.h>
 #include <stdint.h>],
-    [uintmax_t i = (uintmax_t) -1;],
+    [uintmax_t i = (uintmax_t) -1; return !i;],
     gl_cv_header_stdint_h=yes,
     gl_cv_header_stdint_h=no)])
   if test $gl_cv_header_stdint_h = yes; then