From faf9dc48776d2777d44e4524856084db6122a814 Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Thu, 1 Feb 2024 10:05:28 +0000 Subject: [PATCH] Remove C99 style inline declaration --- src/adaptmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/adaptmap.c b/src/adaptmap.c index c518ac37b..7a6923131 100644 --- a/src/adaptmap.c +++ b/src/adaptmap.c @@ -2982,10 +2982,12 @@ PIX *pix1, *pix2, *pixd; PIX * pixConvertTo8MinMax(PIX *pixs) { +l_int32 d; + if (!pixs) return (PIX *)ERROR_PTR("pixs not defined", __func__, NULL); - l_int32 d = pixGetDepth(pixs); + d = pixGetDepth(pixs); if (d == 1) { return pixConvert1To8(NULL, pixs, 255, 0); } else if (d == 2) {