Commit 1ff216c8 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

widl: Mark non-returning functions as noreturn.

parent 6c833cec
...@@ -67,7 +67,7 @@ static void generic_msg(const loc_info_t *loc_info, const char *s, const char *t ...@@ -67,7 +67,7 @@ static void generic_msg(const loc_info_t *loc_info, const char *s, const char *t
/* yyerror: yacc assumes this is not newline terminated. */ /* yyerror: yacc assumes this is not newline terminated. */
int parser_error(const char *s, ...) void parser_error(const char *s, ...)
{ {
loc_info_t cur_location = CURRENT_LOCATION; loc_info_t cur_location = CURRENT_LOCATION;
va_list ap; va_list ap;
...@@ -76,7 +76,6 @@ int parser_error(const char *s, ...) ...@@ -76,7 +76,6 @@ int parser_error(const char *s, ...)
fprintf(stderr, "\n"); fprintf(stderr, "\n");
va_end(ap); va_end(ap);
exit(1); exit(1);
return 1;
} }
void error_loc(const char *s, ...) void error_loc(const char *s, ...)
......
...@@ -33,11 +33,11 @@ char *xstrdup(const char *str); ...@@ -33,11 +33,11 @@ char *xstrdup(const char *str);
#define __attribute__(X) #define __attribute__(X)
#endif #endif
int parser_error(const char *s, ...) __attribute__((format (printf, 1, 2))); void parser_error(const char *s, ...) __attribute__((format (printf, 1, 2))) __attribute__((noreturn));
int parser_warning(const char *s, ...) __attribute__((format (printf, 1, 2))); int parser_warning(const char *s, ...) __attribute__((format (printf, 1, 2)));
void error_loc(const char *s, ...) __attribute__((format (printf, 1, 2))); void error_loc(const char *s, ...) __attribute__((format (printf, 1, 2))) __attribute__((noreturn));
void error(const char *s, ...) __attribute__((format (printf, 1, 2))); void error(const char *s, ...) __attribute__((format (printf, 1, 2))) __attribute__((noreturn));
void error_loc_info(const loc_info_t *, const char *s, ...) __attribute__((format (printf, 2, 3))); void error_loc_info(const loc_info_t *, const char *s, ...) __attribute__((format (printf, 2, 3))) __attribute__((noreturn));
void warning(const char *s, ...) __attribute__((format (printf, 1, 2))); void warning(const char *s, ...) __attribute__((format (printf, 1, 2)));
void warning_loc_info(const loc_info_t *, const char *s, ...) __attribute__((format (printf, 2, 3))); void warning_loc_info(const loc_info_t *, const char *s, ...) __attribute__((format (printf, 2, 3)));
void chat(const char *s, ...) __attribute__((format (printf, 1, 2))); void chat(const char *s, ...) __attribute__((format (printf, 1, 2)));
......
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