From 904f5b4d3dfdfd49c96b4c84cb09e22a2c2e08cb Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Fri, 6 Jan 2023 22:53:47 -0800 Subject: [PATCH] Resolve warning: no previous extern declaration for non-static variable in lineblt8.c --- src/lineblt8.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lineblt8.c b/src/lineblt8.c index cee572e..f911b26 100644 --- a/src/lineblt8.c +++ b/src/lineblt8.c @@ -20,12 +20,11 @@ #define BITSPERNIBBLE 4 #define BITSPERDLWORD 16 -DLword BitMaskArray[] = {32768, 16384, 8192, 4096, 2048, 1024, 512, 256, +static const DLword BitMaskArray[] = {32768, 16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1}; -unsigned int ConvBM_tbl[] = {0, 0xff, 0xff00, 0xffff, 0xff0000, 0xff00ff, +static const unsigned int ConvBM_tbl[] = {0, 0xff, 0xff00, 0xffff, 0xff0000, 0xff00ff, 0xffff00, 0xffffff, 0xff000000, 0xff0000ff, 0xff00ff00, 0xff00ffff, 0xffff0000, 0xffff00ff, 0xffffff00, 0xffffffff}; -unsigned int BMask_tbl[] = {0xf, 7, 3, 1}; #define noop 1