activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Griffin (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-67) Get warning " 'e' : unreferenced local variable" in the example main.cpp
Date Fri, 16 Feb 2007 09:46:02 GMT
Get warning " 'e' : unreferenced local variable" in the example main.cpp
------------------------------------------------------------------------

                 Key: AMQCPP-67
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-67
             Project: ActiveMQ C++ Client
          Issue Type: Improvement
    Affects Versions: 1.1
         Environment: Win XP, VC++ 2005 Express 
            Reporter: Greg Griffin
         Assigned To: Nathan Mittler
            Priority: Minor


occurs in method cleanup(), e.g.

try {                        
     if( destination != NULL ) delete destination;
} catch ( CMSException& e ) {}
destination = NULL;

To solve, can just add something with "e" inside the catch. e.g.:
   ...catch ( CMSException& e ) {e.printStackTrace();}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message