Closed dharple closed 3 years ago
Trying to compile detox v2 on msys2 with mingw64 results in the following error:
gcc -DHAVE_CONFIG_H -I. -DDATADIR=\"/usr/share\" -DSYSCONFDIR=\"/usr/etc\" -DYY_NO_INPUT -DYY_NO_UNPUT -D_FORTIFY_SOURCE=2 -Wall -Werror -g -O2 -flto=auto -fstack-clash-protection -fstack-protector-strong -MT clean_string.o -MD -MP -MF .deps/clean_string.Tpo -c -o clean_string.o clean_string.c In file included from clean_string.c:13: clean_string.c: In function ‘clean_uncgi’: clean_string.c:158:56: error: array subscript has type ‘char’ [-Werror=char-subscripts] 158 | if (input_walk[0] == '%' && isxdigit(input_walk[1]) && isxdigit(input_walk[2])) { | ~~~~~~~~~~^~~ clean_string.c:158:83: error: array subscript has type ‘char’ [-Werror=char-subscripts] 158 | if (input_walk[0] == '%' && isxdigit(input_walk[1]) && isxdigit(input_walk[2])) { | ~~~~~~~~~~^~~ clean_string.c: In function ‘clean_lower’: clean_string.c:332:21: error: array subscript has type ‘char’ [-Werror=char-subscripts] 332 | if (isupper(*input_walk)) { | ^~~~~~~~~~~ cc1: all warnings being treated as errors
Trying to compile detox v2 on msys2 with mingw64 results in the following error: