* Ralf Wildenhues wrote on Thu, Dec 29, 2005 at 02:46:14PM CET:
> * Edward Chernenko wrote on Wed, Dec 28, 2005 at 12:34:06PM CET:
> > Hi, my system is LFS/Linux, C compiler TCC 0.9.23 and
> Interestingly, tcc uncovered unportable use of parentheses around string
> literal initializers (see fix in another post, to libtool-patches).
Applied the patch below to HEAD.
Cheers,
Ralf
* libltdl/lt_error.c (error_strings): Remove parentheses around
string literal initializers, uncovered by `tcc'.
Reported by Edward Chernenko <[EMAIL PROTECTED]>.
Index: libltdl/lt_error.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/lt_error.c,v
retrieving revision 1.6
diff -u -r1.6 lt_error.c
--- libltdl/lt_error.c 27 Sep 2005 13:01:51 -0000 1.6
+++ libltdl/lt_error.c 29 Dec 2005 13:48:25 -0000
@@ -32,7 +32,7 @@
static const char *last_error = 0;
static const char error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
{
-#define LT_ERROR(name, diagnostic) (diagnostic),
+#define LT_ERROR(name, diagnostic) diagnostic,
lt_dlerror_table
#undef LT_ERROR
};