]> granicus.if.org Git - curl/commitdiff
Gunter's fix to avoid the notorious YYSTACK_USE_ALLOCA warning we get on
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Jun 2004 07:27:43 +0000 (07:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Jun 2004 07:27:43 +0000 (07:27 +0000)
several platforms/compilers/yacc versions.

lib/getdate.y

index 291b62990caf6f6018c91a996495de53cf052983..68d0ce60bd438fc2e7c2371bcf26875f0c02d223 100644 (file)
 #define YYDEBUG 0
 #endif
 
+#ifndef YYSTACK_USE_ALLOCA
+  /* to satisfy gcc -Wundef, we set this to 0 */
+#define YYSTACK_USE_ALLOCA 0
+#endif
+
 /* Since the code of getdate.y is not included in the Emacs executable
    itself, there is no need to #define static in this file.  Even if
    the code were included in the Emacs executable, it probably