From f01953d364b1bf5a156e6c5f8b344474953e08f0 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 25 Feb 2020 15:16:38 +0900 Subject: [PATCH] mksyscall: Suppress "'noreturn' function does return" warnings --- tools/mksyscall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/mksyscall.c b/tools/mksyscall.c index 0265496ae5..536b4e8cf8 100644 --- a/tools/mksyscall.c +++ b/tools/mksyscall.c @@ -228,6 +228,12 @@ static void generate_proxy(int nparms) fprintf(stream, "/* Auto-generated %s proxy file -- do not edit */\n\n", g_parm[NAME_INDEX]); fprintf(stream, "#include \n"); + /* Suppress "'noreturn' function does return" warnings. */ + + fprintf(stream, "#include \n"); + fprintf(stream, "#undef noreturn_function\n"); + fprintf(stream, "#define noreturn_function\n"); + /* Does this function have a variable number of parameters? If so then the * final parameter type will be encoded as "..." */