Silence format-nonliteral warning with #pragma GCC diagnostic ignored. Signed-off-by: Giulio Benetti <giulio.benetti@xxxxxxxxxxxxxxxxxxxxxx> --- tools/rpcgen/rpc_cout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/rpcgen/rpc_cout.c b/tools/rpcgen/rpc_cout.c index db7b571b..4627110d 100644 --- a/tools/rpcgen/rpc_cout.c +++ b/tools/rpcgen/rpc_cout.c @@ -353,6 +353,7 @@ emit_program (const definition * def) } } +#pragma GCC diagnostic ignored "-Wformat-nonliteral" static void emit_union (const definition * def) { @@ -430,6 +431,7 @@ emit_union (const definition * def) f_print (fout, "\t}\n"); } +#pragma GCC diagnostic warning "-Wformat-nonliteral" static void inline_struct (definition *def, int flag) -- 2.20.1