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

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

Location:
source/ariba/communication
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/BaseCommunication.cpp

    r6828 r6919  
    539539/// query a descriptor by local link id
    540540BaseCommunication::LinkDescriptor& BaseCommunication::queryLocalLink( const LinkID& link ) const {
    541         for (int i=0; i<linkSet.size();i++)
     541        for (size_t i=0; i<linkSet.size();i++)
    542542                if (linkSet[i]->localLink == link) return (LinkDescriptor&)*linkSet[i];
    543543
     
    547547/// query a descriptor by remote link id
    548548BaseCommunication::LinkDescriptor& BaseCommunication::queryRemoteLink( const LinkID& link ) const {
    549         for (int i=0; i<linkSet.size();i++)
     549        for (size_t i=0; i<linkSet.size();i++)
    550550                if (linkSet[i]->remoteLink == link) return (LinkDescriptor&)*linkSet[i];
    551551
     
    555555LinkIDs BaseCommunication::getLocalLinks( const address_v* addr ) const {
    556556        LinkIDs ids;
    557         for (int i=0; i<linkSet.size(); i++){
     557        for (size_t i=0; i<linkSet.size(); i++){
    558558                if( addr == NULL ){
    559559                        ids.push_back( linkSet[i]->localLink );
  • source/ariba/communication/BaseCommunication.h

    r5874 r6919  
    4141
    4242// boost & std includes
    43 #include <ext/hash_map>
    44 #include <ext/hash_set>
     43#include <boost/unordered_map.hpp>
     44#include <boost/unordered_set.hpp>
    4545#include <map>
    4646#include <set>
     
    239239                /// link identifiers
    240240                LinkID localLink;
     241                const address_v* localLocator;
     242
     243                /// used underlay addresses for the link
    241244                LinkID remoteLink;
    242 
    243                 /// used underlay addresses for the link
    244                 const address_v* localLocator;
    245245                const address_v* remoteLocator;
    246246
  • source/ariba/communication/EndpointDescriptor.h

    r5624 r6919  
    107107        EndpointDescriptor& operator=( const EndpointDescriptor& rhs) {
    108108                endpoints = rhs.endpoints;
     109                return *this;
    109110        }
    110111
  • source/ariba/communication/messages/AribaBaseMsg.cpp

    r5284 r6919  
    6666                        return "typeLinkUpdate";
    6767                default:
    68                         "unknown";
     68                        return "unknown";
    6969        }
    7070        return "unknown";
  • source/ariba/communication/networkinfo/AddressDiscovery.cpp

    r5789 r6919  
    9595void AddressDiscovery::discover_ip_addresses( endpoint_set& endpoints ) {
    9696        struct ifaddrs* ifaceBuffer = NULL;
    97         struct ifaddrs* tmpAddr     = NULL;
    9897        void*           tmpAddrPtr  = NULL;
    9998
  • source/ariba/communication/networkinfo/NetworkChangeDetection.cpp

    r3690 r6919  
    190190
    191191                for( ; bytesRead > 0; header = NLMSG_NEXT(header, bytesRead)) {
    192                         if (    !NLMSG_OK(header, bytesRead) ||
     192                        if (!NLMSG_OK(header, (int)bytesRead) ||
    193193                                (size_t) bytesRead < sizeof(struct nlmsghdr) ||
    194                                 (size_t) bytesRead < header->nlmsg_len) {
     194                                (size_t) bytesRead < (size_t)header->nlmsg_len) {
    195195                                continue;
    196196                        }
  • source/ariba/communication/networkinfo/NetworkChangeDetection.h

    r3690 r6919  
    9393        void stopMonitoring();
    9494
     95        volatile bool running;
    9596        boost::thread* monitoringThread;
    96         volatile bool running;
    9797        static void monitoringThreadFunc( NetworkChangeDetection* obj );
    9898
  • source/ariba/communication/networkinfo/NetworkInterface.cpp

    r3690 r6919  
    4747        name( "" ), index( -1 ), isRunning( false ),
    4848        isUp( false ), isLoopback(false ), isBroadcast( false ),
    49         mtu( -1 ), isMulticast( false ), txQueueLen( -1 )
     49        isMulticast( false ), mtu( -1 ), txQueueLen( -1 )
    5050{
    5151}
Note: See TracChangeset for help on using the changeset viewer.