qmi: Annotate yyerror noreturn

The yyerror() doesn't return, so let the compiler know this, in order to
silence warnings about potentially uninitialized variables.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson 2018-01-30 12:09:42 -08:00
parent 1c036374ea
commit b4e899fffc

2
qmic.h
View File

@ -52,7 +52,7 @@ struct token {
struct qmi_struct *qmi_struct; struct qmi_struct *qmi_struct;
}; };
void yyerror(const char *fmt, ...); void yyerror(const char *fmt, ...) __attribute__((noreturn));
void symbol_add(const char *name, int token, ...); void symbol_add(const char *name, int token, ...);