bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another warn case: intmax.m4


From: Ralf Wildenhues
Subject: another warn case: intmax.m4
Date: Mon, 25 Sep 2006 22:06:22 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Bruno,

I missed this case the last time (as the test isn't executed on my
system).  OK to apply?

Cheers,
Ralf

        * intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variable.

Index: m4/intmax.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/intmax.m4,v
retrieving revision 1.5
diff -u -r1.5 intmax.m4
--- m4/intmax.m4        24 Feb 2005 20:12:45 -0000      1.5
+++ m4/intmax.m4        25 Sep 2006 20:05:04 -0000
@@ -1,5 +1,5 @@
-# intmax.m4 serial 2 (gettext-0.14.2)
-dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
+# intmax.m4 serial 3
+dnl Copyright (C) 2002-2005, 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.
@@ -22,7 +22,7 @@
 #if HAVE_INTTYPES_H_WITH_UINTMAX
 #include <inttypes.h>
 #endif
-], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
+], [intmax_t x = -1; return !x;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
   if test $gt_cv_c_intmax_t = yes; then
     AC_DEFINE(HAVE_INTMAX_T, 1,
       [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]