[Fedora-i18n-bugs] [Bug 496902] New: inttypes_h.m4 and signed.m4 (probably)from /usr/share/gettext/archive.tar.gz dont compile with -Wall -Werror

bugzilla at redhat.com bugzilla at redhat.com
Tue Apr 21 15:25:41 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: inttypes_h.m4 and signed.m4 (probably)from /usr/share/gettext/archive.tar.gz dont compile with -Wall -Werror

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

           Summary: inttypes_h.m4 and signed.m4 (probably)from
                    /usr/share/gettext/archive.tar.gz dont compile with
                    -Wall -Werror
           Product: Fedora
           Version: rawhide
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: high
          Priority: low
         Component: gettext
        AssignedTo: petersen at redhat.com
        ReportedBy: pal at interexc.com
         QAContact: extras-qa at fedoraproject.org
                CC: petersen at redhat.com, fedora-i18n-bugs at redhat.com
   Estimated Hours: 0.0
    Classification: Fedora


Description of problem:
inttypes_h.m4 and signed.m4 (probably)from /usr/share/gettext/archive.tar.gz
dont compile with -Wall -Werror

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.])

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the i18n-bugs mailing list