bug-gnu-utils
[Top][All Lists]
Advanced

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

inttypes_h.m4 and signed.m4 (probably)from /usr/share/gettext/archive.ta


From: Serge Pavlovsky
Subject: inttypes_h.m4 and signed.m4 (probably)from /usr/share/gettext/archive.tar.gz dont compile with -Wall -Werror
Date: Sat, 6 Jun 2009 22:47:25 +0300

https://bugzilla.redhat.com/show_bug.cgi?id=496902

conftest.cpp:38: error: unused variable 'i'
conftest.cpp:32: error: unused variable 'x'

fixes:
--- inttypes_h.m4~ 2009-04-21 18:21:28.000000000 +0300
+++ inttypes_h.m4 2009-04-21 17:56:39.000000000 +0300
@@ -15,7 +15,7 @@
   [AC_TRY_COMPILE(
     [#include <sys/types.h>
 #include <inttypes.h>],
-    [uintmax_t i = (uintmax_t) -1;],
+    [uintmax_t i = (uintmax_t) -1;i=i],
     gl_cv_header_inttypes_h=yes,
     gl_cv_header_inttypes_h=no)])
   if test $gl_cv_header_inttypes_h = yes; then
--- signed.m4~ 2009-04-21 18:21:39.000000000 +0300
+++ signed.m4 2009-04-21 17:57:11.000000000 +0300
@@ -9,7 +9,7 @@
 AC_DEFUN([bh_C_SIGNED],
 [
   AC_CACHE_CHECK([for signed], bh_cv_c_signed,
-   [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes,
bh_cv_c_signed=no)])
+   [AC_TRY_COMPILE(, [signed char x=' ';x=x;], bh_cv_c_signed=yes,
bh_cv_c_signed=no)])
   if test $bh_cv_c_signed = no; then
     AC_DEFINE(signed, ,
               [Define to empty if the C compiler doesn't support this
keyword.])


reply via email to

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