From 218095516d710d58291890dbbaa22095a82671bc Mon Sep 17 00:00:00 2001 From: PHAS Developer Date: Wed, 3 Aug 2022 19:54:20 +0000 Subject: [PATCH] Fix build error by adding format string to croak() During module installation, GCC 11.2.1 produces the following build error: perl-mmagic-xs.c:1113:5: "format not a string literal and no format arguments" --- src/perl-mmagic-xs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perl-mmagic-xs.c b/src/perl-mmagic-xs.c index 92054f3..b84bf75 100644 --- a/src/perl-mmagic-xs.c +++ b/src/perl-mmagic-xs.c @@ -1110,7 +1110,7 @@ fmm_parse_magic_line(PerlFMM *state, char *l, int lineno) error: FMM_SET_ERROR(state, err); - croak(SvPV_nolen(err)); + croak("%s", SvPV_nolen(err)); } /* maps to mod_mime_magic::apprentice */