Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2524


Ignore:
Timestamp:
Dec 22, 2008, 8:12:32 PM (16 years ago)
Author:
rgrieder
Message:

Removed two gcc warnings.

Location:
code/branches/buildsystem2/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/network/packet/Packet.cc

    r2171 r2524  
    165165  assert(ClientInformation::findClient(&peer->address)->getID() != (unsigned int)-2 || !Host::isServer());
    166166  unsigned int clientID = ClientInformation::findClient(&peer->address)->getID();
    167   Packet *p;
     167  Packet *p = 0;
    168168  COUT(5) << "packet type: " << *(ENUM::Type *)&data[_PACKETID] << std::endl;
    169169  switch( *(ENUM::Type *)(data + _PACKETID) )
  • code/branches/buildsystem2/src/orxonox/overlays/hud/HUDBar.cc

    r2087 r2524  
    114114            if (this->colours_.size() > 0)
    115115            {
    116                 ColourValue colour1, colour2 = (*this->colours_.rbegin()).second;
    117                 float value1, value2 = (*this->colours_.rbegin()).first;
     116                ColourValue colour1(0, 0, 0, 1);
     117                ColourValue colour2 = (*this->colours_.rbegin()).second;
     118                float value1(0);
     119                float value2 = (*this->colours_.rbegin()).first;
    118120                for (std::map<float, ColourValue>::reverse_iterator it = this->colours_.rbegin(); it != this->colours_.rend(); ++it)
    119121                {
Note: See TracChangeset for help on using the changeset viewer.