# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1601519676 0 # Node ID 87d574dda8f5819860a14b4c092ebd28aad7740b # Parent 05dd5189099f09e69593657689d46faf67833fe1 Win: Remove workaround for massive warnings using older mingw compilers. diff -r 05dd5189099f -r 87d574dda8f5 makefile.mingw --- a/makefile.mingw Wed Sep 30 22:56:59 2020 +0000 +++ b/makefile.mingw Thu Oct 01 02:34:36 2020 +0000 @@ -21,9 +21,10 @@ PLATFORM_TARGET=pe-x86-64 -DDW64 endif -# Had to disable -Wunused-value due to every Win32 macro generating this warning... +# Had to add -Wno-unused-value due to every Win32 macro generating this warning... # GCC has marked this as WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24900 -CFLAGS = -O -g -DMSVC $(PLATFORM_DEF) $(PLATFORM_CFLAGS) -D__WIN32__ -DBUILD_DLL -DGDIPLUS -DTOOLBAR -DUNICODE -D_UNICODE -DISOLATION_AWARE_ENABLED=1 -I./win -I. -I./platform -Wall -Wno-unused-value -mthreads -o $(@) +# This seems to be fixed in Mingw-w64 8.1 readd the option below if using an old compiler +CFLAGS = -O -g -DMSVC $(PLATFORM_DEF) $(PLATFORM_CFLAGS) -D__WIN32__ -DBUILD_DLL -DGDIPLUS -DTOOLBAR -DUNICODE -D_UNICODE -DISOLATION_AWARE_ENABLED=1 -I./win -I. -I./platform -Wall -mthreads -o $(@) LDFLAGS = -shared -mwindows -mthreads -lcomctl32 -lole32 -loleaut32 -luserenv -lmsimg32 -lgdiplus -luuid COMPATOBJECTS = dwcompat.o dirent.o