[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
signed.m4 again
From: |
Ralf Wildenhues |
Subject: |
signed.m4 again |
Date: |
Thu, 12 Oct 2006 20:31:23 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Bruno,
Sorry to have overlooked this the last time, but signed.m4 still
produces a wrong result with
CC='gcc -Wall -Werror -fno-builtin'
| conftest.c: In function 'main':
| conftest.c:193: warning: 'x' is used uninitialized in this function
| configure:17021: $? = 1
How about this patch?
Cheers,
Ralf
2006-10-12 Ralf Wildenhues <address@hidden>
* m4/signed.m4 (bh_C_SIGNED): Avoid uninitialized variable
warning.
Index: m4/signed.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/signed.m4,v
retrieving revision 1.5
diff -u -r1.5 signed.m4
--- m4/signed.m4 22 Sep 2006 20:10:26 -0000 1.5
+++ m4/signed.m4 12 Oct 2006 18:30:52 -0000
@@ -1,4 +1,4 @@
-# signed.m4 serial 2
+# signed.m4 serial 3
dnl Copyright (C) 2001-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,
@@ -9,7 +9,7 @@
AC_DEFUN([bh_C_SIGNED],
[
AC_CACHE_CHECK([for signed], bh_cv_c_signed,
- [AC_TRY_COMPILE(, [signed char x; return !x;],
+ [AC_TRY_COMPILE(, [signed char x; return !sizeof x;],
bh_cv_c_signed=yes, bh_cv_c_signed=no)])
if test $bh_cv_c_signed = no; then
AC_DEFINE(signed, ,
- signed.m4 again,
Ralf Wildenhues <=