mksyscall: Suppress "'noreturn' function does return" warnings

This commit is contained in:
YAMAMOTO Takashi
2020-02-25 04:07:02 -06:00
committed by Xiang Xiao
parent cec7949a39
commit f01953d364
+6
View File
@@ -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 <nuttx/config.h>\n");
/* Suppress "'noreturn' function does return" warnings. */
fprintf(stream, "#include <nuttx/compiler.h>\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 "..."
*/