[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Warnings in test suite
From: |
Akim Demaille |
Subject: |
FYI: Warnings in test suite |
Date: |
07 May 2002 10:12:49 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) |
There are still warnings, but in calc.at. Robert, would you have a
look at it?
Index: ChangeLog
from Akim Demaille <address@hidden>
* tests/synclines.at: Be sure to prototype yylex and yyerror to
avoid GCC warnings.
Index: tests/synclines.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/synclines.at,v
retrieving revision 1.2
diff -u -u -r1.2 synclines.at
--- tests/synclines.at 23 Apr 2002 09:06:42 -0000 1.2
+++ tests/synclines.at 7 May 2002 08:12:04 -0000
@@ -54,6 +54,8 @@
AT_TEST_SYNCLINE([Prologue synch line],
[[%{
#error "2"
+void yyerror (const char *s);
+int yylex (void);
%}
%%
exp: '0';
@@ -70,6 +72,10 @@
[[%union {
#error "2"
}
+%{
+void yyerror (const char *s);
+int yylex (void);
+%}
%%
exp: '0';
]],
@@ -83,19 +89,20 @@
AT_TEST_SYNCLINE([Postprologue synch line],
[[%{
-/* Nothing here. */
+void yyerror (const char *s);
+int yylex (void);
%}
%union
{
int ival;
}
%{
-#error "9"
+#error "10"
%}
%%
exp: '0';
]],
-[input.y:9: #error "9"
+[input.y:10: #error "10"
])
@@ -104,13 +111,17 @@
## ------------------- ##
AT_TEST_SYNCLINE([Action synch line],
-[[%%
+[[%{
+void yyerror (const char *s);
+int yylex (void);
+%}
+%%
exp:
{
-#error "4"
+#error "8"
};
]],
-[input.y:4: #error "4"
+[input.y:8: #error "8"
])
@@ -119,10 +130,14 @@
## --------------------- ##
AT_TEST_SYNCLINE([Epilogue synch line],
-[[%%
+[[%{
+void yyerror (const char *s);
+int yylex (void);
+%}
+%%
exp: '0';
%%
-#error "4"
+#error "8"
]],
-[input.y:4: #error "4"
+[input.y:8: #error "8"
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Warnings in test suite,
Akim Demaille <=