[cig-commits] commit: Make the tests use -Wall -Werror and fix a few unused variables

Mercurial hg at geodynamics.org
Tue May 29 10:52:40 PDT 2012


changeset:   12:53eb6101fa53
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Tue May 29 10:52:23 2012 -0700
files:       tests/conformance/Makefile tests/conformance/T4ddg/test_T4ddgIII.cpp tests/conformance/T4ddg/test_T4ddgIV.cpp tests/conformance/T4ddg/test_T4ddgV.cpp tests/speed/Makefile
description:
Make the tests use -Wall -Werror and fix a few unused variables


diff -r d927779469da -r 53eb6101fa53 tests/conformance/Makefile
--- a/tests/conformance/Makefile	Sat May 05 06:20:15 2012 -0700
+++ b/tests/conformance/Makefile	Tue May 29 10:52:23 2012 -0700
@@ -3,7 +3,7 @@ VPATH=T2:T2s:T3:T3as:T3dg:T4ddg
 
 CXX = g++
 CXXOPTIMIZE =
-CXXFLAGS=-ftemplate-depth-100 -Drestrict= -DFTENSOR_DEBUG $(CXXOPTIMIZE)
+CXXFLAGS=-Wall -Werror -ftemplate-depth-100 -Drestrict= -DFTENSOR_DEBUG $(CXXOPTIMIZE)
 # CXXFLAGS=-O3 -ftemplate-depth-100 -Drestrict=__restrict__
 
 # CXX = /home/boo/foreign_compilers/usr/local/KAI/KCC.pu-4.0d-1/KCC_BASE/bin/KCC
diff -r d927779469da -r 53eb6101fa53 tests/conformance/T4ddg/test_T4ddgIII.cpp
--- a/tests/conformance/T4ddg/test_T4ddgIII.cpp	Sat May 05 06:20:15 2012 -0700
+++ b/tests/conformance/T4ddg/test_T4ddgIII.cpp	Tue May 29 10:52:23 2012 -0700
@@ -29,7 +29,7 @@ void test_T4ddgIII(const int &T, Tensor0
   Number<1> N1;
   Number<2> N2;
 
-  Tensor4_ddg<double,3,3> t4ddg_1, t4ddg_2, t4ddg_3;
+  Tensor4_ddg<double,3,3> t4ddg_1, t4ddg_2;
 
   t4ddg_2(i,k,j,l)=t2s_2(i,k)*t2s_3(j,l);
   t2_1(i,k)=t4ddg_2(i,j,k,l)*t2s_2(j,l);
diff -r d927779469da -r 53eb6101fa53 tests/conformance/T4ddg/test_T4ddgIV.cpp
--- a/tests/conformance/T4ddg/test_T4ddgIV.cpp	Sat May 05 06:20:15 2012 -0700
+++ b/tests/conformance/T4ddg/test_T4ddgIV.cpp	Tue May 29 10:52:23 2012 -0700
@@ -29,7 +29,7 @@ void test_T4ddgIV(const int &T, Tensor0<
   Number<1> N1;
   Number<2> N2;
 
-  Tensor4_ddg<double,3,3> t4ddg_1, t4ddg_2, t4ddg_3;
+  Tensor4_ddg<double,3,3> t4ddg_2;
 
   t4ddg_2(i,j,l,m)=t2s_2(i,j)*t2s_2(l,m);
   t2s_1(i,k)=(t4ddg_2(i,j,k,l) ^ t2s_2(j,l));
diff -r d927779469da -r 53eb6101fa53 tests/conformance/T4ddg/test_T4ddgV.cpp
--- a/tests/conformance/T4ddg/test_T4ddgV.cpp	Sat May 05 06:20:15 2012 -0700
+++ b/tests/conformance/T4ddg/test_T4ddgV.cpp	Tue May 29 10:52:23 2012 -0700
@@ -29,7 +29,7 @@ void test_T4ddgV(const int &T, Tensor0<d
   Number<1> N1;
   Number<2> N2;
 
-  Tensor4_ddg<double,3,3> t4ddg_1, t4ddg_2, t4ddg_3;
+  Tensor4_ddg<double,3,3> t4ddg_1, t4ddg_2;
 
   /* T4_ddg(1,1,i,j)=T2s(i,j) */
 
diff -r d927779469da -r 53eb6101fa53 tests/speed/Makefile
--- a/tests/speed/Makefile	Sat May 05 06:20:15 2012 -0700
+++ b/tests/speed/Makefile	Tue May 29 10:52:23 2012 -0700
@@ -5,7 +5,7 @@
 
 CXX = g++
 CXXOPTIMIZE=-O3 -finline-functions -finline-limit-1000 -funroll-loops
-CXXFLAGS=-ftemplate-depth-1000 -Drestrict= $(CXXOPTIMIZE)
+CXXFLAGS=-Wall -Werror -ftemplate-depth-1000 -Drestrict= $(CXXOPTIMIZE)
 # CXXFLAGS=-O3 -ftemplate-depth-100 -Drestrict= -fomit-frame-pointer -finline-functions -finline-limit-1000000000000 -ffast-math -fno-rtti -fno-exceptions
 # CXXFLAGS=-ftemplate-depth-100 -Drestrict=__restrict__
 # CXXFLAGS=-ansi -ftemplate-depth-100 -Drestrict=
@@ -36,7 +36,8 @@ CXXFLAGS=-ftemplate-depth-1000 -Drestric
 
 % :: %,v
 
-all: little littlefast example examplefast speed_test one_over one_over_fast
+all: little littlefast example examplefast one_over one_over_fast
+# all: little littlefast example examplefast speed_test one_over one_over_fast
 
 
 one_over: one_over_1_minus_x1 one_over_1_minus_x2 one_over_1_minus_x3 one_over_1_minus_x4 one_over_1_minus_x5 one_over_1_minus_x6 one_over_1_minus_x7 one_over_1_minus_x8 one_over_1_minus_x9



More information about the CIG-COMMITS mailing list