Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Matusevich <sergei.matusevich@gmail.com>2011-05-26 00:27:45 +0400
committerJohn <jl@hunch.net>2011-06-24 04:55:23 +0400
commit4997b7bd587e97927285093199b78c32fd166381 (patch)
treeb59f8de5873f4e6205b14083e286f4812f39650f /Makefile
parent7a0db9b66c939c133dc07477c712989bda4525d7 (diff)
use -Wall -Werror --pedantic flags for compilation (and everything
compiles jsut fine) :)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6e6e2b0f..21ef5b39 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,10 @@ BOOST_LIBRARY = /usr/local/lib
ARCH = -march=native
OPTIM_FLAGS = -O3 -fomit-frame-pointer -ffast-math -fno-strict-aliasing
+WARN_FLAGS = --pedantic -Wall -Werror -Wno-long-long -Wno-vla
# for normal fast execution.
-FLAGS = -Wall $(ARCH) $(OPTIM_FLAGS) -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE)
+FLAGS = $(ARCH) $(WARN_FLAGS) $(OPTIM_FLAGS) -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE)
# for parallelization
#FLAGS = -Wall $(ARCH) -ffast-math -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE) -O3 -fopenmp