tools: Remove hardcoded use of -Werror By hardcoding the use of -Werror, we risk that the build can break on any newer (or older) toolchain which can give warnings for unexpected issues. Fixing such issues is of course desired, but we shouldn't be breaking the build universally, unless the user explicitly has asked for this behaviour. Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-tools/gendef/Makefile.am b/mingw-w64-tools/gendef/Makefile.am index 20bf6df..bcd8566 100644 --- a/mingw-w64-tools/gendef/Makefile.am +++ b/mingw-w64-tools/gendef/Makefile.am
@@ -4,7 +4,7 @@ gendef_SOURCES = src/gendef.h src/compat_string.h src/gendef.c src/gendef_def.c src/compat_string.c \ src/fsredir.c src/fsredir.h -gendef_CFLAGS = $(AM_CFLAGS) -Werror -Wall -W +gendef_CFLAGS = $(AM_CFLAGS) -Wall -W EXTRA_DIST = $(srcdir)/ChangeLog* DISTCHECK_CONFIGURE_FLAGS = --host=$(host) --with-mangle=@with_mangle@
diff --git a/mingw-w64-tools/genpeimg/Makefile.am b/mingw-w64-tools/genpeimg/Makefile.am index c7a5d5d..3f5219b 100644 --- a/mingw-w64-tools/genpeimg/Makefile.am +++ b/mingw-w64-tools/genpeimg/Makefile.am
@@ -1,6 +1,6 @@ bin_PROGRAMS = genpeimg genpeimg_SOURCES = src/img.h src/img.c src/img_pe.c src/genpeimg.c genpeimg_CPPFLAGS = -Isrc -genpeimg_CFLAGS = $(AM_CFLAGS) -O3 -g -Werror -Wall -Wextra +genpeimg_CFLAGS = $(AM_CFLAGS) -O3 -g -Wall -Wextra DISTCHECK_CONFIGURE_FLAGS = --host=$(host)