wttw/pgpsl

Build fail

Closed this issue · 1 comments

Centos 7 with postgres 12.3

make
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -I. -I./ -I/usr/pgsql-12/include/server -I/usr/pgsql-12/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/regdom.o src/regdom.c
src/regdom.c: In function ‘printTldTreeI’:
src/regdom.c:147:9: error: variable length array ‘nspacer’ is used [-Werror=vla]
         char nspacer[n+2+1];
         ^
cc1: some warnings being treated as errors
make: *** [src/regdom.o] Error 1

Please help fix this.

wttw commented

Fixed in 1.0.0.