Changeset 6919


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
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/AribaModule.cpp

    r5767 r6919  
    6060
    6161AribaModule::AribaModule()
    62         : base_comm(NULL), sideport_sniffer(NULL), started(false) {
     62        : started(false), base_comm(NULL), sideport_sniffer(NULL) {
    6363
    6464        endpoints = "tcp{41322};rfcomm{10};";
  • source/ariba/DataMessage.h

    r2473 r6919  
    7373
    7474        inline bool isData() const {
    75                 return size == ~0;
     75                return size == ~(size_t)0;
    7676        }
    7777
  • source/ariba/Makefile.am

    r6822 r6919  
    2222# compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2323
    24 AM_CPPFLAGS     = -DLINUX -D_LINUX -I../ -D_REENTRANT -DSCTP_KERN
     24AM_CPPFLAGS    = -DLINUX -D_LINUX -I../ -D_REENTRANT -DSCTP_KERN
    2525AM_CPPFLAGS    += $(BOOST_CPPFLAGS)
    2626
  • source/ariba/Name.cpp

    r2481 r6919  
    108108Name& Name::operator=( const Name& name ) {
    109109        init((const char*)name.bytes(), name.length(), true, name._hreadable);
     110        return *this;
    110111}
    111112
     
    153154        if (_hreadable) {
    154155                char str[256];
    155                 for (int i=0; i<length(); i++) str[i] = bytes()[i];
     156                for (size_t i=0; i<length(); i++) str[i] = bytes()[i];
    156157                str[length()] = 0;
    157158                return string(str);
  • source/ariba/Name.h

    r2454 r6919  
    149149
    150150private:
     151        uint8_t* _bytes;
     152        int _length;
     153        bool _copy;
    151154        bool _hreadable;
    152         bool _copy;
    153         int _length;
    154         uint8_t* _bytes;
    155155
    156156        void init(const char* name, int len, bool copy, bool hreadable);
  • source/ariba/Node.cpp

    r6836 r6919  
    4848
    4949Node::Node(AribaModule& ariba_mod, const Name& node_name) :
    50         ariba_mod(ariba_mod), name(node_name) {
     50        name(node_name), ariba_mod(ariba_mod) {
    5151        base_overlay = new BaseOverlay();
    5252}
     
    164164        // now that we have a listener, we can ask if sniffing is ok
    165165        if( ariba_mod.sideport_sniffer != NULL ){
    166                 bool allow = listener->onEnableSideportListener();
     166//              bool allow = listener->onEnableSideportListener();
    167167                base_overlay->registerSidePort(ariba_mod.sideport_sniffer);
    168168        }
     
    202202// @see Module.h
    203203string Node::getName() const {
    204 
     204        return name.toString();
    205205}
    206206
  • 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}
  • source/ariba/overlay/BaseOverlay.cpp

    r6916 r6919  
    148148        static bool equals( const Data& lhs, const Data& rhs ) {
    149149                if (rhs.getLength()!=lhs.getLength()) return false;
    150                 for (int i=0; i<lhs.getLength()/8; i++)
     150                for (size_t i=0; i<lhs.getLength()/8; i++)
    151151                        if (lhs.getBuffer()[i] != rhs.getBuffer()[i]) return false;
    152152                return true;
     
    604604        message->setDestinationNode(remote);
    605605        message->setService(service);
    606         send( message, remote );
     606        return send( message, remote );
    607607}
    608608
     
    747747
    748748BaseOverlay::BaseOverlay() :
    749                         bc(NULL), overlayInterface(NULL), nodeId(NodeID::UNSPECIFIED),
    750                         spovnetId(SpoVNetID::UNSPECIFIED), state(BaseOverlayStateInvalid),
    751                         sideport(&SideportListener::DEFAULT), started(false), counter(0) {
     749                        started(false),state(BaseOverlayStateInvalid),
     750                        bc(NULL),
     751                        nodeId(NodeID::UNSPECIFIED), spovnetId(SpoVNetID::UNSPECIFIED),
     752                        sideport(&SideportListener::DEFAULT), overlayInterface(NULL),
     753                        counter(0) {
    752754        dht = new DHT();
    753755        localDHT = new DHT();
     
    11581160        sideport = _sideport;
    11591161        _sideport->configure( this );
     1162        return true;
    11601163}
    11611164
    11621165bool BaseOverlay::unregisterSidePort(SideportListener* _sideport) {
    11631166        sideport = &SideportListener::DEFAULT;
     1167        return true;
    11641168}
    11651169
     
    17891793        // erase the original descriptor
    17901794        eraseDescriptor(ld->overlayId);
     1795        return true;
    17911796}
    17921797
     
    21822187void BaseOverlay::dhtPut( const Data& key, const Data& value, int ttl, bool replace, bool no_local_refresh ) {
    21832188
    2184         logging_info("DHT: putting key=" <<  key
    2185                         << " value=" << value
    2186                         << " ttl=" << ttl
    2187                         << " replace=" << replace
     2189        logging_info("DHT: putting key=" << key << " value=" << value
     2190                << " ttl=" << ttl << " replace=" << replace
    21882191        );
    21892192
  • source/ariba/overlay/OverlayBootstrap.h

    r5967 r6919  
    106106                        nodeid = rhs.nodeid;
    107107                        endpoint = rhs.endpoint;
     108                        return *this;
    108109                }
    109110
  • source/ariba/overlay/messages/DHTMessage.cpp

    r6835 r6919  
    1010DHTMessage::DHTMessage() {
    1111        this->key.setLength(0);
    12         this->ttl =0 ;
     12        this->ttl = 0;
    1313        this->replace = false;
    1414}
     
    1818        this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    1919        this->key = key.clone();
    20         this->ttl =0 ;
     20        this->ttl = 0;
    2121        this->replace = false;
    2222}
     
    2626        this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    2727        this->key = key.clone();
    28         this->values.push_back(  value.clone() );
    29         this->ttl =0 ;
     28        this->values.push_back( value.clone() );
     29        this->ttl = 0;
    3030        this->replace = false;
    3131}
    3232
    3333DHTMessage::DHTMessage( const Data& key, const vector<Data>& values ) {
     34        this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    3435        this->key = key.clone();
    3536        BOOST_FOREACH(const Data value, values )
    36                         this->values.push_back( value.clone() );
     37                this->values.push_back( value.clone() );
     38        this->ttl = 0;
    3739        this->replace = false;
    3840}
  • source/ariba/overlay/messages/DHTMessage.h

    r6835 r6919  
    3333
    3434        bool hasValues() const {
    35                 values.size() != 0;
     35                return values.size() != 0;
    3636        }
    3737
  • source/ariba/overlay/messages/OverlayMsg.h

    r6266 r6919  
    213213        uint8_t increaseNumHops() {
    214214                hops++;
     215                return hops;
    215216        }
    216217
  • source/ariba/overlay/modules/OverlayInterface.h

    r6854 r6919  
    179179        BaseOverlay& baseoverlay;
    180180
    181         /// The parameters of the overlay structure
    182         OverlayParameterSet parameters;
    183 
    184181        /// The node identifier to use with this overlay
    185182        const NodeID& nodeid;
     
    187184        /// The listener used to inform about overlay structure changes
    188185        OverlayStructureEvents* eventsReceiver;
     186
     187        /// The parameters of the overlay structure
     188        OverlayParameterSet parameters;
    189189
    190190        /// The service identifer of this overlay
  • source/ariba/overlay/modules/chord/Chord.cpp

    r6854 r6919  
    7979
    8080        // check if we already have a connection
    81         for (int i=0; i<table->size(); i++)
     81        for (size_t i=0; i<table->size(); i++)
    8282                if ((*table)[i]->ref_count > 0 && (*table)[i]->id == remote && !((*table)[i]->info.isUnspecified()))
    8383                        return LinkID::UNSPECIFIED;
     
    291291
    292292        // handle messages
    293         switch (m->getType()) {
     293        switch ((signalMessageTypes)m->getType()) {
    294294
    295295        // discovery request
     
    317317                        setup( dmsg->getEndpoint(), m->getSourceNode() );
    318318
    319                 // delegate discovery message
     319                // process discovery message -------------------------- switch start --
    320320                switch (dmsg->getType()) {
    321321
     
    388388                        baseoverlay.send(&omsg, omsg.getDestinationNode());
    389389                        break;
    390                 }}
     390                }
     391                case Discovery::invalid:
     392                        break;
     393
     394                default:
     395                        break;
     396                }
     397                // process discovery message ---------------------------- switch end --
     398
    391399                delete dmsg;
    392400                break;
     
    426434                // updating neighbors
    427435                logging_debug("Discover new ring neighbors");
    428                 for (int i=0; i<table->size(); i++) {
     436                for (size_t i=0; i<table->size(); i++) {
    429437                        LinkID id = (*table)[i]->info;
    430438                        if (!id.isUnspecified()) discover_neighbors(id);
  • source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp

    r5902 r6919  
    9292private:
    9393        // maximum number of fingers
    94         static const int max_fingers = 32;
     94        static const size_t max_fingers = 32;
    9595
    9696        // the own node id
  • source/ariba/overlay/modules/onehop/OneHop.cpp

    r6266 r6919  
    241241        if( onemsg->isType( OneHopMessage::OneHopMessageTypeListingRequest ) ){
    242242
    243                 NodeListingRequest* request = onemsg->decapsulate<NodeListingRequest>();
     243                //NodeListingRequest* request = onemsg->decapsulate<NodeListingRequest>();
    244244
    245245                logging_info( "onehop received node listing request from node " << remote.toString() );
  • source/ariba/utility/addressing/endpoint_set.hpp

    r6877 r6919  
    399399                this->rfcomm = rhs.rfcomm;
    400400                this->tcp = rhs.tcp;
     401                return *this;
    401402        }
    402403
  • source/ariba/utility/addressing/ip_address.hpp

    r6841 r6919  
    166166        }
    167167
    168 
    169168        bool is_multicast_site_local() const {
    170169                if (addr.is_v4()) return false;
  • source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp

    r5967 r6919  
    6464namespace utility {
    6565
     66static bdaddr_t bd_addr_any = {{0, 0, 0, 0, 0, 0}};
     67static bdaddr_t bd_addr_local = {{0, 0, 0, 0xff, 0xff, 0xff}};
     68
    6669use_logging_cpp(BluetoothSdp);
    6770OverlayBootstrap* BluetoothSdp::CONNECTION_CHECKER = NULL;
     
    216219        // connect to the local SDP server, register the service record
    217220        if( sdp_session_ == NULL ){
    218                 sdp_session_ = sdp_connect(BDADDR_ANY, BDADDR_LOCAL, SDP_RETRY_IF_BUSY);
     221                sdp_session_ = sdp_connect(&bd_addr_any, &bd_addr_local, SDP_RETRY_IF_BUSY);
    219222        }
    220223
     
    275278
    276279                bdaddr_t address;
    277                 uint8_t channel;
     280//              uint8_t channel;
    278281
    279282                dev_id = hci_get_route(NULL);
     
    339342        char name[256], info1[256], info2[256], info3[256];
    340343
    341         session = sdp_connect(BDADDR_ANY, &target, SDP_RETRY_IF_BUSY);
     344        session = sdp_connect(&bd_addr_any, &target, SDP_RETRY_IF_BUSY);
    342345
    343346        if (session == NULL) {
     
    401404         * Returns a string holding the bt adress in human readable form.
    402405         */
    403         char addr[32] = { 0 };
    404406        char str[32] = { 0 };
    405407        ba2str(ba, str);
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h

    r5973 r6919  
    197197        public:
    198198                udp_server(boost::asio::io_service& io_service, ServiceList* _services, boost::mutex* _servicesmutex)
    199                         : services(_services), servicesmutex(_servicesmutex),
    200                                 socket_v4(io_service), socket_v6(io_service) {
     199                        : socket_v4(io_service), socket_v6(io_service),
     200                          services(_services), servicesmutex(_servicesmutex) {
    201201
    202202                        if( open4() ) start_receive_4();
     
    350350
    351351                                { // insert new found service
    352                                         boost::mutex::scoped_lock( *servicesmutex );
     352                                        boost::mutex::scoped_lock lock( *servicesmutex );
    353353
    354354                                        ServiceList::iterator it = services->find( msg.getName() );
  • source/ariba/utility/measurement/PathloadMeasurement.cpp

    r5412 r6919  
    4545
    4646PathloadMeasurement::PathloadMeasurement(BaseOverlay* _overlay)
    47         : running( false ), resultNode( NodeID::UNSPECIFIED ),
    48           listener( NULL), serverpid( -1 ) {
     47        : running( false ), listener( NULL), resultNode( NodeID::UNSPECIFIED ),
     48          serverpid( -1 ) {
    4949
    5050        if( _overlay != NULL ) // this is important due to the singleton interface!
     
    142142        char buf[128];
    143143        string content = "";
    144         bool failed = true;
     144//      bool failed = true;
    145145
    146146        while( fgets(buf, 100, stream) != NULL ){
  • 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 );
  • source/ariba/utility/serialization/DataStream.hpp

    r5638 r6919  
    516516
    517517        /* array and vector support */
    518         template<typename T>
     518        template<typename T, bool staticArray = false>
    519519        class ArrayTpl : public ExplicitSerializer {
    520520        private:
     
    527527
    528528                sznMethodBegin(X)
    529                 if (X.isDeserializer()) v = new T[l];
     529                if (X.isDeserializer() && !staticArray) v = new T[l];
    530530                for (size_t i=0; i<l; i++) X && v[i];
    531531                sznMethodEnd()
     
    556556        finline ArrayTpl<T> A( T*& array, size_t length ) {
    557557                return ArrayTpl<T>(array,length);
     558        }
     559
     560        template<typename T>
     561        finline ArrayTpl<T,true> static_A( T*& array, size_t length ) {
     562                return ArrayTpl<T, true>(array,length);
    558563        }
    559564
  • source/ariba/utility/system/SystemEvent.h

    r3690 r6919  
    5959        const void* data; //< data attached to the event
    6060
    61 public: 
     61public:
    6262        // TODO: these should be private, but the gcc 3.4 in scratchbox for cross-compiling
    6363        // for Maemo (Nokia N810) gets confused when the friend class SystemQueue has a
     
    6666        uint32_t delayTime; //< time the event is scheduled at, or 0 if it is to be fired immediately
    6767        uint32_t remainingDelay; //< remaining delay time for sleeping
    68        
     68
    6969public:
    70         inline SystemEvent(
    71                         SystemEventListener* mlistener,
    72                         SystemEventType mtype = SystemEventType::DEFAULT,
    73                         void* mdata = NULL)
    74                         :       scheduledTime(boost::posix_time::not_a_date_time),
    75                                 delayTime(0),
    76                                 remainingDelay(0),
    77                                 listener(mlistener),
    78                                 type(mtype),
    79                                 data(mdata) {
     70        inline SystemEvent(SystemEventListener* mlistener, SystemEventType mtype =
     71                        SystemEventType::DEFAULT, void* mdata = NULL) :
     72                listener(mlistener), type(mtype), data(mdata), scheduledTime(
     73                                boost::posix_time::not_a_date_time), delayTime(0),
     74                                remainingDelay(0)
     75
     76        {
    8077        }
    8178
    8279        template<typename T>
    83         inline SystemEvent( SystemEventListener* mlistener,
    84                         SystemEventType mtype = SystemEventType::DEFAULT,
    85                         T* mdata = NULL)
    86                                 :       scheduledTime(boost::posix_time::not_a_date_time),
    87                                         delayTime(0),
    88                                         remainingDelay(0),
    89                                         listener(mlistener),
    90                                         type(mtype),
    91                                         data((void*)mdata) {
     80        inline SystemEvent(SystemEventListener* mlistener, SystemEventType mtype =
     81                        SystemEventType::DEFAULT, T* mdata = NULL) :
     82                listener(mlistener), type(mtype), data((void*) mdata), scheduledTime(
     83                                boost::posix_time::not_a_date_time), delayTime(0),
     84                                remainingDelay(0) {
    9285        }
    93 
    94 
    9586
    9687        inline SystemEvent(const SystemEvent& copy) {
     
    126117        template<typename T>
    127118        inline T* getData() const {
    128                 return (T*)*this;
     119                return (T*) *this;
    129120        }
    130121
     
    147138};
    148139
    149 }} // spovnet, common
     140}
     141} // spovnet, common
    150142
    151143#endif /* SYSTEMEVENT_H_ */
  • source/ariba/utility/system/SystemQueue.cpp

    r5316 r6919  
    125125
    126126SystemQueue::QueueThread::QueueThread(QueueThread* _transferQueue)
    127         : running( false ), transferQueue( _transferQueue ) {
     127        : transferQueue( _transferQueue ), running( false ) {
    128128}
    129129
  • source/ariba/utility/system/SystemQueue.h

    r4702 r6919  
    234234#ifdef UNDERLAY_OMNET
    235235
     236#if 0
    236237        //
    237238        // the system queue must be a singleton in simulations, too.
     
    243244        // this is the macro definition from macros.h
    244245        //
    245         // #define Define_Module(CLASSNAME) \
    246         //   static cModule *CLASSNAME##__create() {return new CLASSNAME();} \
     246        // #define Define_Module(CLASSNAME) /backslash
     247        //   static cModule *CLASSNAME##__create() {return new CLASSNAME();} /backslash
    247248        //   EXECUTE_ON_STARTUP(CLASSNAME##__mod, modtypes.instance()->add(new cModuleType(#CLASSNAME,#CLASSNAME,(ModuleCreateFunc)CLASSNAME##__create));)
    248249        //
    249250        // and this is how we do it :)
    250251        //
     252#endif
    251253
    252254        static cModule* SystemQueue__create() {
  • source/ariba/utility/transport/tcpip/protlib/address.h

    r5284 r6919  
    790790
    791791        node *insert(netaddress &key, data_type &dat) {
    792                 node *a, *b, *c, *n, *m;
    793                 int cmp, pos = 0;
     792                node *a, *b = NULL, *c, *n, *m;
     793                int cmp = 0, pos = 0;
    794794
    795795                c = a = key.is_ipv4() ? v4head : v6head;
  • source/ariba/utility/transport/tcpip/tcpip.cpp

    r5718 r6919  
    183183                datamsg->set_pos(0);
    184184                uint32_t message_size = datamsg->decode32(true)-2;
    185                 uint16_t remote_port = datamsg->decode16(true);
     185                //uint16_t remote_port = datamsg->decode16(true);
    186186
    187187
  • source/ariba/utility/types/Identifier.cpp

    r4437 r6919  
    7070
    7171void Identifier::clearAddress() {
    72         for (int i = 0; i < array_size; i++)
     72        for (size_t i = 0; i < array_size; i++)
    7373                key[i] = 0;
    7474        isUnspec = false;
     
    7777
    7878bool Identifier::setAddress(string address) {
    79         // TODO
     79        return false;
    8080}
    8181
     
    204204        if (isUnspec) return std::string("<unspec>");
    205205
    206         char temp[80];
     206        char temp[250];
    207207        if (base == 16) {
    208208                int k = 0;
     
    238238}
    239239#endif
     240        return "<not supported>";
    240241}
    241242
  • source/ariba/utility/types/ServiceID.h

    r3690 r6919  
    7575
    7676        inline bool isUnspecified() const {
    77                 return (id==~0);
     77                return (id==~(uint32_t)0);
    7878        }
    7979
  • source/ariba/utility/visual/DddVis.cpp

    r6900 r6919  
    125125                                order = ORDER_RANDOMLY;
    126126                                break;
     127                        default:
     128                                break;
    127129                        }
    128130
Note: See TracChangeset for help on using the changeset viewer.