mirror of
https://github.com/linux-msm/qmic.git
synced 2024-11-23 17:54:01 +08:00
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:
parent
1c036374ea
commit
b4e899fffc
2
qmic.h
2
qmic.h
@ -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, ...);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user