datatype.c:455:22: error: format string is not a string literal [-Werror,-Wformat-nonliteral] nft_gmp_print(octx, fmt, expr->value); ^~~ Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx> --- src/datatype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datatype.c b/src/datatype.c index 4d0e44eeb500..12fe7141709d 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -452,7 +452,9 @@ static void integer_type_print(const struct expr *expr, struct output_ctx *octx) } } while ((dtype = dtype->basetype)); + _NFT_PRAGMA_WARNING_DISABLE("-Wformat-nonliteral") nft_gmp_print(octx, fmt, expr->value); + _NFT_PRAGMA_WARNING_REENABLE } static struct error_record *integer_type_parse(struct parse_ctx *ctx, -- 2.41.0