OSDN Git Service

オプション -Wextra で warning が出ないよう調整
authorSubaruG <subaru_g@users.sourceforge.jp>
Sat, 30 Jan 2010 23:04:30 +0000 (08:04 +0900)
committerSubaruG <subaru_g@users.sourceforge.jp>
Sat, 30 Jan 2010 23:04:30 +0000 (08:04 +0900)
14 files changed:
tests/assign.cc
tests/bool_comparable.cc
tests/cast.cc
tests/clonable_ptr.cc
tests/deleter.cc
tests/enable_if.cc
tests/factorize.cc
tests/identity.cc
tests/list_format.cc
tests/list_formatter.cc
tests/plane/angle.cc
tests/pointer_facade.cc
tests/to_string.cc
tests/value_saver.cc

index 64fbb65..c81e8bd 100644 (file)
@@ -45,7 +45,7 @@ void archetype_test()
 // 厳密な動作チェックは行わない
 
 // テスト本体
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // archetype_test();
   basic_test();
index dcb4a85..c00d494 100644 (file)
@@ -220,7 +220,7 @@ struct convertible_from_int2
 
 
 // テストメイン
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   my_optional_test();
   eq_cmp::test();
index ed03638..3f41cf1 100644 (file)
@@ -57,7 +57,7 @@ void test2()
 }
 
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // コンパイルが通った時点で殆どテスト成功
   test1();
index 7dc386c..5b7ff17 100644 (file)
@@ -198,7 +198,7 @@ void test1( const gintenlib::clonable_ptr<T>& p0 )
   // おわり
 }
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   test1( gintenlib::clonable_ptr<int>( new int() ) );
   test1( gintenlib::clonable_ptr<int>( static_cast<int*>(0) ) );
index ea3b462..21ac3f8 100644 (file)
@@ -114,7 +114,7 @@ void test_typed_deleter()
   // めんどいので delete もしない(ぉぃ)
 }
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   test_deleter();
   test_typed_deleter();
index 361797e..c681b25 100644 (file)
@@ -1,5 +1,5 @@
 // ヘッダのインクルード
-#include <gintenlib/preprocessor/enable_if.hpp>
+#include "../gintenlib/preprocessor/enable_if.hpp"
 
 // boost の単体テストフレームワーク
 #include <boost/test/minimal.hpp>
@@ -30,7 +30,7 @@ bool hoge( const T&, GINTENLIB_DISABLE_IF(( boost::is_base_of<base, T> )) )
 
 
 // 単体テスト本体
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   derived d;
   int i;
index 9e65bde..f445ad8 100644 (file)
@@ -29,7 +29,7 @@ inline void check( T x, const T (&ans)[N] )
   }
 }
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // 12 * 23 * 42 = 11592 = 2 * 2 * 2 * 3 * 3 * 7 * 23 を因数分解
   {
index 2784aed..cebab4a 100644 (file)
@@ -40,7 +40,7 @@ void test()
 
 #include <iostream>
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // 組み込み型
   test<int>();
index e55ad08..c8ed58c 100644 (file)
@@ -67,7 +67,7 @@ void test_basic()
   }
 }
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // 空 range に対するチェック
   test_empty();
index 8840b6f..7dbf142 100644 (file)
@@ -11,7 +11,7 @@
 using namespace std;
 
 // list_format と同じで失礼
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // とりあえずデータを用意する
   vector<int> v;
index e0dafea..24719fc 100644 (file)
@@ -28,7 +28,7 @@ bool nearly_equal( const plane::basic_angle<Real>& a, const plane::basic_angle<R
 
 typedef plane::angle angle_t;
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // neary_equal のチェック
   BOOST_CHECK( !nearly_equal( 0.0, 1.0 ) );
index 09e210b..4759686 100644 (file)
@@ -217,7 +217,7 @@ void test2()
 }
 
 // テストメイン
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   test1();
   test2();
index 66f4a3b..a0d0d8c 100644 (file)
@@ -36,7 +36,7 @@ struct fuga
 };
 
 // テストしてみる
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   using gintenlib::to_string;
   
index 686c860..25d58e4 100644 (file)
@@ -80,7 +80,7 @@ void test_saver( const T& x0, const T& x1 )
 #include <complex>
 #include <boost/shared_ptr.hpp>
 
-int test_main( int argc, char* argv[] )
+int test_main( int, char** )
 {
   // 組み込み型
   test_saver<int>( 0, 1 );