Ignore:
Timestamp:
Nov 13, 2009, 1:41:34 PM (15 years ago)
Author:
mies
Message:

Fixed tons of warnings when using CXXFLAGS="-Wall"!

Location:
source/ariba/utility/messages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/messages/Message.h

    r6786 r6919  
    106106         */
    107107        explicit inline Message( const Data& data ) :
    108                 srcAddr(NULL),destAddr(NULL), releasePayload(true) {
     108                releasePayload(true), srcAddr(NULL),destAddr(NULL) {
    109109                this->payload = data.clone();
    110110//              this->root = shared_array<uint8_t>((uint8_t*)data.getBuffer());
     
    246246                        } else {
    247247                                if (msg->payload.isUnspecified()) {
    248                                         size_t l = ((len == ~0) ? X.getRemainingLength() : len);
     248                                        size_t l = ((len == ~(size_t)0) ? X.getRemainingLength() : len);
    249249                                        msg->payload = X.getRemainingData(l);
    250250                                        msg->releasePayload = false;
  • source/ariba/utility/messages/MessageProvider.cpp

    r3690 r6919  
    4949bool MessageProvider::sendMessageToReceivers( const Message* message ) {
    5050        bool sent =  false;
    51         for (int i=0; i<receivers.size(); i++)
     51        for (size_t i=0; i<receivers.size(); i++)
    5252                if (receivers[i]->receiveMessage(message, LinkID::UNSPECIFIED, NodeID::UNSPECIFIED)) sent = true;
    5353        return sent;
     
    5959
    6060void MessageProvider::removeMessageReceiver( MessageReceiver* receiver ) {
    61         for (int i=0; i<receivers.size(); i++)
     61        for (size_t i=0; i<receivers.size(); i++)
    6262                if (receivers[i]==receiver) {
    6363                        receivers.erase( receivers.begin()+i );
Note: See TracChangeset for help on using the changeset viewer.