public
/
pilex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34470f6
)
Remove some compiler warnings in calculator test (needed since Linux Mint 19)
author
Nick Downing
<nick@ndcode.org>
Mon, 14 Jan 2019 02:49:27 +0000
(13:49 +1100)
committer
Nick Downing
<nick@ndcode.org>
Mon, 14 Jan 2019 02:49:27 +0000
(13:49 +1100)
tests/cal.y
patch
|
blob
|
history
diff --git
a/tests/cal.y
b/tests/cal.y
index
637cb82
..
e73a2b6
100644
(file)
--- a/
tests/cal.y
+++ b/
tests/cal.y
@@
-2,6
+2,9
@@
#include <ctype.h>
#include <stdio.h>
#define YYSTYPE double
+
+int yylex(void);
+void yyerror(char *s);
%}
%token NUM
@@
-34,7
+37,7
@@
int main()
yyparse();
}
-
yyerror(char *
s)
+
void yyerror(char *
s)
{
printf("%s\n", s);
exit(1);