593: Use TESTS_CXXFLAGS in Metalic.

https://svn.lrde.epita.fr/svn/oln/trunk/metalic Index: ChangeLog from Roland Levillain <roland@lrde.epita.fr> Use TESTS_CXXFLAGS in Metalic. * tests/gcase.cc (print), tests/protected.cc (reveal), * tests/switch.cc (print): Make dummy use of all variables to void compiler warnings. * tests/Makefile.am (TESTS_CXXFLAGS): New. Append it to... (CXXFLAGS): ...this variable. Makefile.am | 8 ++++++-- gcase.cc | 2 ++ protected.cc | 2 ++ switch.cc | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) Index: tests/switch.cc --- tests/switch.cc (revision 592) +++ tests/switch.cc (working copy) @@ -157,6 +157,8 @@ void print() { int tmp; + // Dummy usage. + tmp = tmp; } Index: tests/gcase.cc --- tests/gcase.cc (revision 592) +++ tests/gcase.cc (working copy) @@ -55,6 +55,8 @@ void print() { int tmp; + // Dummy usage. + tmp = tmp; } Index: tests/Makefile.am --- tests/Makefile.am (revision 592) +++ tests/Makefile.am (working copy) @@ -1,12 +1,16 @@ ## Process this file through Automake to create Makefile.in -*- Makefile -*- AM_CPPFLAGS = -I$(top_srcdir)/metalic + # FIXME: Add # -# AM_CXXFLAGS = $(CXXFLAGS_STRICT) -ggdb +# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG) # # when oln.m4 is available in the distribution. -AM_CXXFLAGS = -O0 -ggdb +# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will +# warn against this, but that's OK). +TESTS_CXXFLAGS = @TESTS_CXXFLAGS@ +CXXFLAGS += $(TESTS_CXXFLAGS) check_PROGRAMS = \ Index: tests/protected.cc --- tests/protected.cc (revision 592) +++ tests/protected.cc (working copy) @@ -39,6 +39,8 @@ void reveal() { T tmp; + // Dummy usage. + tmp = tmp; }
participants (1)
-
Roland Levillain