Skip to content

Commit 10eb073

Browse files
Enabled warnings as errors in config.inc to match travis settings
Tightened the replacement for MSVC to allow testing it in config.inc
1 parent 7e63380 commit 10eb073

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ build_script:
5454
cp -r deps/minisat2-2.2.1 minisat-2.2.1
5555
patch -d minisat-2.2.1 -p1 < scripts/minisat-2.2.1-patch
5656
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
57-
sed -i "s/BUILD_ENV.*/BUILD_ENV = MSVC/" src/config.inc
57+
sed -i "s/BUILD_ENV[ ]*=.*/BUILD_ENV = MSVC/" src/config.inc
5858
make -C src -j2
5959
6060
test_script:

src/config.inc

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Build platform (use one of AUTO, Unix, OSX_Universal, MSVC, Cygwin, MinGW)
22
BUILD_ENV = AUTO
33

4-
# Enable all warnings
5-
#CXXFLAGS += -Wall -Wno-long-long -Wno-sign-compare -Wno-parentheses -Wno-strict-aliasing -pedantic
6-
7-
# Treat warnings as errors
8-
#CXXFLAGS += -Werror
4+
# Enable all warnings and treat them as errors
5+
ifeq ($(BUILD_ENV),MSVC)
6+
#CXXFLAGS += /Wall /WX
7+
else
8+
CXXFLAGS += -Wall -pedantic -Werror
9+
endif
910

1011
# Select optimisation or debug info
1112
#CXXFLAGS += -O2 -DNDEBUG

0 commit comments

Comments
 (0)