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/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.