Permalink
Browse files

fix OBS complaints

declare void functions to be void and add final returns to functions that will never reach them
  • Loading branch information...
1 parent ba95eca commit 04304e5f9e5a1545203a5536f1c54c19ae6e4e94 Andrew Jorgensen committed Sep 1, 2010
View
@@ -48,6 +48,7 @@ static unsigned *first_derives;
static unsigned *EFF;
+void
set_EFF()
{
register unsigned *row;
@@ -84,6 +85,7 @@ set_EFF()
}
+void
set_first_derives()
{
register unsigned *rrow;
@@ -139,6 +141,7 @@ set_first_derives()
}
+void
closure(nucleus, n)
short *nucleus;
int n;
@@ -209,6 +212,7 @@ int n;
+void
finalize_closure()
{
FREE(itemset);
@@ -219,6 +223,7 @@ finalize_closure()
#ifdef DEBUG
+void
print_closure(n)
int n;
{
@@ -230,6 +235,7 @@ int n;
}
+void
print_EFF()
{
register int i, j;
@@ -261,6 +267,7 @@ print_EFF()
}
+void
print_first_derives()
{
register int i;
View
@@ -43,6 +43,7 @@ static char sccsid[] = "@(#)error.c 5.3 (Berkeley) 6/1/90";
#include "defs.h"
+void
fatal(msg)
char *msg;
{
@@ -51,13 +52,15 @@ char *msg;
}
+void
no_space()
{
fprintf(stderr, "%s: f - out of space\n", myname);
done(2);
}
+void
open_error(filename)
char *filename;
{
@@ -66,6 +69,7 @@ char *filename;
}
+void
unexpected_EOF()
{
fprintf(stderr, "%s: e - line %d of \"%s\", unexpected end-of-file\n",
@@ -101,6 +105,7 @@ char *st_cptr;
}
+void
syntax_error(st_lineno, st_line, st_cptr)
int st_lineno;
char *st_line;
@@ -113,6 +118,7 @@ char *st_cptr;
}
+void
unterminated_comment(c_lineno, c_line, c_cptr)
int c_lineno;
char *c_line;
@@ -125,6 +131,7 @@ char *c_cptr;
}
+void
unterminated_string(s_lineno, s_line, s_cptr)
int s_lineno;
char *s_line;
@@ -137,6 +144,7 @@ char *s_cptr;
}
+void
unterminated_text(t_lineno, t_line, t_cptr)
int t_lineno;
char *t_line;
@@ -149,6 +157,7 @@ char *t_cptr;
}
+void
illegal_tag(t_lineno, t_line, t_cptr)
int t_lineno;
char *t_line;
@@ -161,6 +170,7 @@ char *t_cptr;
}
+void
illegal_character(c_cptr)
char *c_cptr;
{
@@ -171,6 +181,7 @@ char *c_cptr;
}
+void
used_reserved(s)
char *s;
{
@@ -180,6 +191,7 @@ char *s;
}
+void
tokenized_start(s)
char *s;
{
@@ -189,6 +201,7 @@ declared to be a token\n", myname, lineno, input_file_name, s);
}
+void
retyped_warning(s)
char *s;
{
@@ -197,6 +210,7 @@ redeclared\n", myname, lineno, input_file_name, s);
}
+void
reprec_warning(s)
char *s;
{
@@ -205,6 +219,7 @@ redeclared\n", myname, lineno, input_file_name, s);
}
+void
revalued_warning(s)
char *s;
{
@@ -213,6 +228,7 @@ redeclared\n", myname, lineno, input_file_name, s);
}
+void
terminal_start(s)
char *s;
{
@@ -222,13 +238,15 @@ token\n", myname, lineno, input_file_name, s);
}
+void
restarted_warning()
{
fprintf(stderr, "%s: w - line %d of \"%s\", the start symbol has been \
redeclared\n", myname, lineno, input_file_name);
}
+void
no_grammar()
{
fprintf(stderr, "%s: e - line %d of \"%s\", no grammar has been \
@@ -237,6 +255,7 @@ specified\n", myname, lineno, input_file_name);
}
+void
terminal_lhs(s_lineno)
int s_lineno;
{
@@ -246,13 +265,15 @@ of a production\n", myname, s_lineno, input_file_name);
}
+void
prec_redeclared()
{
fprintf(stderr, "%s: w - line %d of \"%s\", conflicting %%prec \
specifiers\n", myname, lineno, input_file_name);
}
+void
unterminated_action(a_lineno, a_line, a_cptr)
int a_lineno;
char *a_line;
@@ -265,6 +286,7 @@ char *a_cptr;
}
+void
dollar_warning(a_lineno, i)
int a_lineno;
int i;
@@ -274,6 +296,7 @@ end of the current rule\n", myname, a_lineno, input_file_name, i);
}
+void
dollar_error(a_lineno, a_line, a_cptr)
int a_lineno;
char *a_line;
@@ -286,6 +309,7 @@ char *a_cptr;
}
+void
untyped_lhs()
{
fprintf(stderr, "%s: w - line %d of \"%s\", $$ is untyped\n",
@@ -294,6 +318,7 @@ untyped_lhs()
}
+void
untyped_rhs(i, s)
int i;
char *s;
@@ -304,6 +329,7 @@ char *s;
}
+void
unknown_rhs(i)
int i;
{
@@ -313,13 +339,15 @@ int i;
}
+void
default_action_warning()
{
fprintf(stderr, "%s: w - line %d of \"%s\", the default action assigns an \
undefined value to $$\n", myname, lineno, input_file_name);
}
+void
undefined_goal(s)
char *s;
{
@@ -328,6 +356,7 @@ char *s;
}
+void
undefined_symbol_warning(s)
char *s;
{
Oops, something went wrong.

0 comments on commit 04304e5

Please sign in to comment.