From b4e899fffcf25c28a88317c4472d06b37f4018c0 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Tue, 30 Jan 2018 12:09:42 -0800 Subject: [PATCH] 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 --- qmic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmic.h b/qmic.h index da95bd2..1e81f50 100644 --- a/qmic.h +++ b/qmic.h @@ -52,7 +52,7 @@ struct token { 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, ...);