On Mon, Aug 28, 2023 at 04:43:58PM +0200, Thomas Haller wrote: > 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") Maybe simply -Wno-format-nonliteral turn off in Clang so there is no need for this PRAGMA in order to simplify things. > 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 >