toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN/internal debug.hh size_mismatch.hh vbase.hh


From: Edward Rosten
Subject: [Toon-members] TooN/internal debug.hh size_mismatch.hh vbase.hh
Date: Mon, 26 Jan 2009 18:45:18 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Edward Rosten <edrosten>        09/01/26 18:45:18

Modified files:
        internal       : debug.hh size_mismatch.hh vbase.hh 

Log message:
        Test programs now compile with no warnings with -Wall -Wextra

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/debug.hh?cvsroot=toon&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/size_mismatch.hh?cvsroot=toon&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/vbase.hh?cvsroot=toon&r1=1.3&r2=1.4

Patches:
Index: debug.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/debug.hh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- debug.hh    9 Jan 2009 16:23:43 -0000       1.2
+++ debug.hh    26 Jan 2009 18:45:18 -0000      1.3
@@ -3,9 +3,9 @@
 
        
 
+       #if defined  TOON_CHECK_BOUNDS  || defined TOON_TEST_INTERNALS
        static inline void check_index(int s, int i)
        {
-               #if defined  TOON_CHECK_BOUNDS  || defined TOON_TEST_INTERNALS
                        if(i<0 || i >= s)
                        {
                                #ifdef TOON_TEST_INTERNALS
@@ -15,6 +15,8 @@
                                        std::abort();
                                #endif
                        }
-               #endif
        }
+       #else
+               static inline void check_index(int, int){}
+       #endif
 }

Index: size_mismatch.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/size_mismatch.hh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- size_mismatch.hh    9 Jan 2009 16:23:43 -0000       1.1
+++ size_mismatch.hh    26 Jan 2009 18:45:18 -0000      1.2
@@ -8,7 +8,7 @@
 // special cases which do exist
 template<int Size>
 struct SizeMismatch<Size,Size>{
-  static inline void test(int size1, int size2){}
+  static inline void test(int, int){}
 };
 
 template<int Size>

Index: vbase.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/vbase.hh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- vbase.hh    13 Jan 2009 11:58:49 -0000      1.3
+++ vbase.hh    26 Jan 2009 18:45:18 -0000      1.4
@@ -78,7 +78,7 @@
   
   // constructor from arbitrary vector
   template<int Size2, class Base2>
-  inline VBase(const Vector<Size2, Precision, Base2>& from){}
+  inline VBase(const Vector<Size2, Precision, Base2>&){}
 
   Precision* data(){return my_data;}
   const Precision* data() const {return my_data;}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]