bison-patches
[Top][All Lists]
Advanced

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

pacify the buggy "smart preprocessor" in MacOS 10.2.3


From: Paul Eggert
Subject: pacify the buggy "smart preprocessor" in MacOS 10.2.3
Date: Thu, 2 Jan 2003 16:00:27 -0800

I installed this:

2003-01-02  Paul Eggert  <address@hidden>

        * data/yacc.c (yyerrlab1): Append `;' after attribute, to
        pacify the buggy "smart preprocessor" in MacOS 10.2.3.
        Bug reported by Nelson H. F. Beebe.

--- data/yacc.c 28 Dec 2002 08:36:02 -0000      1.47
+++ data/yacc.c 2 Jan 2003 23:58:42 -0000       1.48
@@ -1112,9 +1112,10 @@ yyerrlab:
 yyerrlab1:
 
   /* Suppress GCC warning that yyerrlab1 is unused when no action
-     invokes YYERROR.  */
+     invokes YYERROR.  MacOS 10.2.3's buggy "smart preprocessor"
+     insists on the trailing semicolon.  */
 #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
-  __attribute__ ((__unused__))
+  __attribute__ ((__unused__));
 #endif
 
 ]b4_location_if([  yylerrsp = yylsp;



reply via email to

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