From 8ebdede538943f5532f19e533b3425880d3d5b6b Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Wed, 5 Sep 2018 06:30:18 -0700 Subject: [PATCH] Fix some issues with the MinGW build. Fixes #58. --- Makefile.am | 1 + Makefile.simple | 1 + pattern2.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 43aae0f6..f10e3c70 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,6 +34,7 @@ endif MAC if MINGW nodist_hyperrogue_SOURCES = hyper.res +hyperrogue_CPPFLAGS += -march=native -DWINDOWS windres_prefix = ${host_cpu}-w64-mingw32- endif MINGW diff --git a/Makefile.simple b/Makefile.simple index 0e5466ce..64627d6d 100644 --- a/Makefile.simple +++ b/Makefile.simple @@ -94,6 +94,7 @@ endif ifeq (${TOOLCHAIN},mingw) CXXFLAGS_EARLY += -std=c++11 -march=native CXXFLAGS_EARLY += -W -Wall -Wextra -Werror + CXXFLAGS_EARLY += -Wno-unused-parameter endif diff --git a/pattern2.cpp b/pattern2.cpp index bb93d71b..b36507d3 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1525,7 +1525,7 @@ namespace patterns { #if CAP_TEXTURE #define REMAP_TEXTURE texture::config.remap() #else -#define REMAP_TEXTURE +#define REMAP_TEXTURE (void)0 #endif void showPattern() {