Fix 'function definition has qualified void return type' gcc warnings.

Some functions used 'volatile void'. Since void already specifies a
return type of nothingness, doesn't make much sense to be considered
"volatile".

This was accepted by gcc, but considered an error by other compilers.
gcc now warns about this.

Note that this deals with "volatile void", not "volatile void *".
parent f30f05a8
......@@ -47,7 +47,7 @@ static struct replacement_item **add_replacement_data
static struct replacement_item **add_replacement_attr
P((struct replacement_item **, char *));
static int hash P((enum event_type, char *));
static NO_RETURN void parse_error VP((char *,...));
static void parse_error VP((char *,...));
static VOID buffer_init P((struct buffer *));
static VOID buffer_append P((struct buffer *, int));
static char *buffer_extract P((struct buffer *));
......@@ -442,7 +442,7 @@ UNIV xrealloc(p, size)
return p;
}
static NO_RETURN
static
#ifdef VARARGS
void parse_error(va_alist) va_dcl
#else
......
......@@ -112,7 +112,7 @@ static char *errlist[] = {
"Input line too long"
};
static void NO_RETURN error P((enum error_code));
static void error P((enum error_code));
static int parse_data P((char *, unsigned long *));
static void parse_location P((char *, struct sgmls *));
static void parse_notation P((char *, notation_s *));
......@@ -1017,7 +1017,7 @@ UNIV xrealloc(p, n)
return p;
}
static NO_RETURN
static
void error(num)
enum error_code num;
{
......
......@@ -251,7 +251,6 @@ void output_begin_line()
output_char('\n');
}
NO_RETURN
#ifdef VARARGS
void error(va_alist) va_dcl
#else
......
......@@ -21,6 +21,6 @@
#define VP(parms) P(parms)
#endif
NO_RETURN void error VP((char *,...));
void error VP((char *,...));
extern int fold_general_names;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment