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/networkinfo
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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.