[mlpack-svn] r11129 - mlpack/trunk/src/mlpack/core/util

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jan 17 15:31:21 EST 2012


Author: jcline3
Date: 2012-01-17 15:31:20 -0500 (Tue, 17 Jan 2012)
New Revision: 11129

Modified:
   mlpack/trunk/src/mlpack/core/util/nulloutstream.hpp
Log:
Comment out unused parameter names (suprisingly valid C++), -Wunused-parameter


Modified: mlpack/trunk/src/mlpack/core/util/nulloutstream.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/nulloutstream.hpp	2012-01-17 19:54:00 UTC (rev 11128)
+++ mlpack/trunk/src/mlpack/core/util/nulloutstream.hpp	2012-01-17 20:31:20 UTC (rev 11129)
@@ -30,48 +30,48 @@
   /**
    * Does nothing.
    */
-  NullOutStream(const NullOutStream& other) { }
+  NullOutStream(const NullOutStream& /* other */) { }
 
   //! Does nothing.
-  NullOutStream& operator<<(bool val) { return *this; }
+  NullOutStream& operator<<(bool /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(short val) { return *this; }
+  NullOutStream& operator<<(short /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(unsigned short val) { return *this; }
+  NullOutStream& operator<<(unsigned short /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(int val) { return *this; }
+  NullOutStream& operator<<(int /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(unsigned int val) { return *this; }
+  NullOutStream& operator<<(unsigned int /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(long val) { return *this; }
+  NullOutStream& operator<<(long /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(unsigned long val) { return *this; }
+  NullOutStream& operator<<(unsigned long /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(float val) { return *this; }
+  NullOutStream& operator<<(float /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(double val) { return *this; }
+  NullOutStream& operator<<(double /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(long double val) { return *this; }
+  NullOutStream& operator<<(long double /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(void* val) { return *this; }
+  NullOutStream& operator<<(void* /* val */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(const char* str) { return *this; }
+  NullOutStream& operator<<(const char* /* str */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(std::string& str) { return *this; }
+  NullOutStream& operator<<(std::string& /* str */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(std::streambuf* sb) { return *this; }
+  NullOutStream& operator<<(std::streambuf* /* sb */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(std::ostream& (*pf) (std::ostream&))
+  NullOutStream& operator<<(std::ostream& /* (*pf) (std::ostream&) */)
   { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(std::ios& (*pf) (std::ios&)) { return *this; }
+  NullOutStream& operator<<(std::ios& /* (*pf) (std::ios&) */) { return *this; }
   //! Does nothing.
-  NullOutStream& operator<<(std::ios_base& (*pf) (std::ios_base&))
+  NullOutStream& operator<<(std::ios_base& /* (*pf) (std::ios_base&) */)
   { return *this; }
 
   //! Does nothing.
   template<typename T>
-  NullOutStream& operator<<(T s)
+  NullOutStream& operator<<(T /* s */)
   { return *this; }
 };
 




More information about the mlpack-svn mailing list