svn commit: r595570 - in /activemq/activemq-cpp/decaf/trunk/src: main/decaf/internal/util/HexStringParser.cpp main/decaf/internal/util/NumberConverter.cpp main/decaf/lang/Double.cpp main/decaf/net/URI.cpp test/decaf/io/BufferedInputStreamTest.cpp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r595570 - in /activemq/activemq-cpp/decaf/trunk/src: main/decaf/internal/util/HexStringParser.cpp main/decaf/internal/util/NumberConverter.cpp main/decaf/lang/Double.cpp main/decaf/net/URI.cpp test/decaf/io/BufferedInputStreamTest.cpp

nmittler-2
Author: nmittler
Date: Thu Nov 15 22:26:54 2007
New Revision: 595570

URL: http://svn.apache.org/viewvc?rev=595570&view=rev
Log:
Fixing some warnings in decaf

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/HexStringParser.cpp
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/NumberConverter.cpp
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Double.cpp
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/URI.cpp
    activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/BufferedInputStreamTest.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/HexStringParser.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/HexStringParser.cpp?rev=595570&r1=595569&r2=595570&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/HexStringParser.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/HexStringParser.cpp Thu Nov 15 22:26:54 2007
@@ -91,7 +91,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string* HexStringParser::getSegmentsFromHexString( const std::string& hexString ) {
+std::string* HexStringParser::getSegmentsFromHexString( DECAF_UNUSED const std::string& hexString ) {
 
 //    apr_pool_t* thePool = NULL;
 //    apr_pool_create( &thePool, NULL );

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/NumberConverter.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/NumberConverter.cpp?rev=595570&r1=595569&r2=595570&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/NumberConverter.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/util/NumberConverter.cpp Thu Nov 15 22:26:54 2007
@@ -256,7 +256,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 void NumberConverter::bigIntDigitGeneratorInstImpl(
-    long long f, int e, bool isDenormalized, bool mantissaIsZero, int p ) {
+    long long f, int e, bool isDenormalized, DECAF_UNUSED bool mantissaIsZero, int p ) {
 
     static const std::size_t RM_SIZE = 21;
     static const std::size_t STemp_SIZE = 22;

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Double.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Double.cpp?rev=595570&r1=595569&r2=595570&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Double.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Double.cpp Thu Nov 15 22:26:54 2007
@@ -135,7 +135,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-double Double::parseDouble( const std::string value )
+double Double::parseDouble( DECAF_UNUSED const std::string value )
     throw ( exceptions::NumberFormatException ) {
 
     return 0; // TODO
@@ -227,7 +227,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string Double::toString( double value ) {
+std::string Double::toString( DECAF_UNUSED double value ) {
     return ""; //TODO
 }
 

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/URI.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/URI.cpp?rev=595570&r1=595569&r2=595570&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/URI.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/URI.cpp Thu Nov 15 22:26:54 2007
@@ -237,7 +237,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int URI::compareTo( const URI& value ) const {
+int URI::compareTo( DECAF_UNUSED const URI& value ) const {
     return 0;
 }
 
@@ -268,8 +268,8 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string URI::quoteComponent( const std::string& component,
-                                 const std::string& legalset ) {
+std::string URI::quoteComponent( DECAF_UNUSED const std::string& component,
+        DECAF_UNUSED const std::string& legalset ) {
 //    try {
         /*
          * Use a different encoder than URLEncoder since: 1. chars like "/",
@@ -281,4 +281,6 @@
 //    } catch( UnsupportedEncodingException e ) {
 //        throw RuntimeException( e );
 //    }
+    
+    return "";
 }

Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/BufferedInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/BufferedInputStreamTest.cpp?rev=595570&r1=595569&r2=595570&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/BufferedInputStreamTest.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/BufferedInputStreamTest.cpp Thu Nov 15 22:26:54 2007
@@ -198,7 +198,7 @@
 
     CPPUNIT_ASSERT_THROW_MESSAGE(
         "should throw IOException",
-        bis.read( NULL, 0, -1 ),
+        bis.read( NULL, 0, (size_t)-1 ),
         IOException );
 
     bis.close();