From bfb9b1be925c92e1ffb5888289eab7aac665db38 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 8 Oct 2022 06:09:14 -0600 Subject: [PATCH] newSVbool(): Fix compiler warning The parameter was declared const in embed.fnc, but not in the function prototype --- sv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv.c b/sv.c index cdea471df7dc..91b64d528cef 100644 --- a/sv.c +++ b/sv.c @@ -9961,7 +9961,7 @@ Creates a new SV boolean. */ SV * -Perl_newSVbool(pTHX_ bool bool_val) +Perl_newSVbool(pTHX_ const bool bool_val) { PERL_ARGS_ASSERT_NEWSVBOOL; SV *sv = newSVsv(bool_val ? &PL_sv_yes : &PL_sv_no);