libtool-patches
[Top][All Lists]
Advanced

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

FYI: HEAD: fix string literal initializer (was: adapting for use with TC


From: Ralf Wildenhues
Subject: FYI: HEAD: fix string literal initializer (was: adapting for use with TCC)
Date: Thu, 29 Dec 2005 14:52:37 +0100
User-agent: Mutt/1.5.11

* 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 <address@hidden>.

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
   };




reply via email to

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