Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8316 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Jun 11, 2006, 1:57:27 PM (19 years ago)
Author:
bensch
Message:

trunk: fixed most -Wall warnings… but there are still many missing :/

Location:
trunk/src/lib/util
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/loading/dynamic_loader.cc

    r7355 r8316  
    6060  }
    6161  void *mkr = dlsym( this->handle, "maker");
     62  return (mkr != NULL);
    6263}
    6364
     
    7273  }
    7374//  void *mkr = dlsym("maker");
    74 
     75  return true;
    7576}
    7677
     
    7879BaseObject* DynamicLoader::fabricateObject(const TiXmlElement* root) const
    7980{
     81  /// FIXME
     82  return NULL;
    8083}
    8184#endif
  • trunk/src/lib/util/loading/load_param.cc

    r7721 r8316  
    2929 */
    3030CLoadParam::CLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, Executor* executor, bool inLoadCycle)
    31   :  paramName(paramName), object(object)
     31  :  object(object), paramName(paramName)
    3232{
    3333  this->object = object;
  • trunk/src/lib/util/loading/load_param_description.cc

    r7221 r8316  
    275275
    276276  return retVal;*/
    277 }
     277  std::list<std::string> a;
     278  return a;
     279}
  • trunk/src/lib/util/loading/resource_manager.cc

    r7676 r8316  
    557557bool ResourceManager::unloadAllByPriority(ResourcePriority prio)
    558558{
     559  bool removedAll = true;
    559560  unsigned int removeCount;
    560561  for (unsigned int round = 0; round < 3; round++)
     
    571572        {
    572573          if (round == 3)
     574          {
    573575            PRINTF(2)("unable to unload %s because there are still %d references to it\n",
    574576                      this->resourceList[index]->name.c_str(), this->resourceList[index]->count);
     577            removedAll = false;
     578          }
    575579          removeCount++;
    576580        }
     
    580584    if (removeCount == 0) break;
    581585  }
     586  return removedAll;
    582587}
    583588
     
    711716  }
    712717  return tmp;*/
     718  return "";
    713719}
    714720
     
    733739    return this->cache(splits[1], ResourceManager::stringToResourceType(splits[0]),
    734740                RP_LEVEL, splits[2], splits[3], splits[4]);*/
     741  return false;
    735742}
    736743
  • trunk/src/lib/util/multi_type.cc

    r8035 r8316  
    160160    case MT_STRING:
    161161      return (this->storedString == mt.storedString);
     162    default:
     163      return false;
    162164  }
    163165}
     
    190192      this->setString(this->getString());
    191193      break;
     194    default:
     195      this->type = type;
    192196  }
    193197}
     
    477481    case MT_STRING:
    478482      return MultiType::typeNames[5];
    479   }
    480   return MultiType::typeNames[0];
     483    default:
     484      return MultiType::typeNames[0];
     485  }
    481486}
    482487
Note: See TracChangeset for help on using the changeset viewer.