Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2008, 2:44:46 PM (16 years ago)
Author:
rgrieder
Message:

Removed some always-true statements that gcc issued with the -W option.
There is still a lot of warnings from the Ogre UTFString header about the copy constructor initialisation.
—> We would need to use -W -Wno-unused-parameter -Wno-?. I couldn't find that option directly unfortunately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/CommandEvaluation.cc

    r1747 r1879  
    220220    void CommandEvaluation::setEvaluatedParameter(unsigned int index, MultiType param)
    221221    {
    222         if (index >= 0 && index < MAX_FUNCTOR_ARGUMENTS)
     222        if (index < MAX_FUNCTOR_ARGUMENTS)
    223223            this->param_[index] = param;
    224224    }
     
    226226    MultiType CommandEvaluation::getEvaluatedParameter(unsigned int index) const
    227227    {
    228         if (index >= 0 && index < MAX_FUNCTOR_ARGUMENTS)
     228        if (index < MAX_FUNCTOR_ARGUMENTS)
    229229            return this->param_[index];
    230230
Note: See TracChangeset for help on using the changeset viewer.