From 7a072e11681813753446fc3aeb3759f46c77b468 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 17 Feb 2017 09:24:48 +0800 Subject: Makefile: Enable '-Werror' flag and a minor cleanup --- mass_profile/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mass_profile/Makefile b/mass_profile/Makefile index bd8a70e..2f9ed26 100644 --- a/mass_profile/Makefile +++ b/mass_profile/Makefile @@ -8,8 +8,8 @@ CXX ?= g++ -#CXXFLAGS += -Wall -Werror CXXFLAGS += -Wall +CXXFLAGS += -Werror ifdef OPENMP CXXFLAGS += -fopenmp @@ -100,9 +100,6 @@ report_error.o: report_error.cpp report_error.hpp dump_fit_qdp.o: dump_fit_qdp.cpp dump_fit_qdp.hpp $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) -%.o: %.cc - $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) - %.o: %.cpp $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) -- cgit v1.2.2