Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 46703 invoked from network); 26 Oct 2010 14:17:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 14:17:51 -0000 Received: (qmail 2661 invoked by uid 500); 26 Oct 2010 14:17:51 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 2597 invoked by uid 500); 26 Oct 2010 14:17:49 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 2590 invoked by uid 99); 26 Oct 2010 14:17:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 14:17:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 14:17:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 60AF123888DD; Tue, 26 Oct 2010 14:16:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1027568 - /activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp Date: Tue, 26 Oct 2010 14:16:48 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101026141648.60AF123888DD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Tue Oct 26 14:16:48 2010 New Revision: 1027568 URL: http://svn.apache.org/viewvc?rev=1027568&view=rev Log: Fix a couple of warnings. Modified: activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp Modified: activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp?rev=1027568&r1=1027567&r2=1027568&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp (original) +++ activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp Tue Oct 26 14:16:48 2010 @@ -186,9 +186,9 @@ cms_status getConnectionClientId(CMS_Con try{ std::string theClientId = connection->connection->getClientID(); - if(theClientId.size() < size) { + if(theClientId.size() < (std::size_t)size) { - for(int i = 0; i < theClientId.size(); ++i) { + for(std::size_t i = 0; i < theClientId.size(); ++i) { clientId[i] = theClientId.at(i); }