Indentation fixes (and signed/unsigned comparison fix) to silence GCC 6 warnings
This commit is contained in:
parent
fd124e91de
commit
b1270376c9
@ -80,8 +80,12 @@ void updateBlendingStateGL(VGContext *c, int alphaIsOne)
|
|||||||
|
|
||||||
case VG_BLEND_SRC_OVER: default:
|
case VG_BLEND_SRC_OVER: default:
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
if (alphaIsOne) glDisable(GL_BLEND);
|
if (alphaIsOne) {
|
||||||
else glEnable(GL_BLEND); break;
|
glDisable(GL_BLEND);
|
||||||
|
} else {
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
}
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -648,8 +648,9 @@ bool SGMetar::scanWeather()
|
|||||||
weather = pre + weather + post;
|
weather = pre + weather + post;
|
||||||
weather.erase(weather.length() - 1);
|
weather.erase(weather.length() - 1);
|
||||||
_weather.push_back(weather);
|
_weather.push_back(weather);
|
||||||
if( ! w.phenomena.empty() )
|
if( ! w.phenomena.empty() ) {
|
||||||
_weather2.push_back( w );
|
_weather2.push_back( w );
|
||||||
|
}
|
||||||
_grpcount++;
|
_grpcount++;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -384,7 +384,7 @@ void Root::refresh(bool aForce)
|
|||||||
CatalogList toRefresh;
|
CatalogList toRefresh;
|
||||||
CatalogDict::iterator it = d->catalogs.begin();
|
CatalogDict::iterator it = d->catalogs.begin();
|
||||||
for (; it != d->catalogs.end(); ++it) {
|
for (; it != d->catalogs.end(); ++it) {
|
||||||
int age = it->second->ageInSeconds();
|
unsigned int age = it->second->ageInSeconds();
|
||||||
if (aForce || (age > maxAgeSeconds())) {
|
if (aForce || (age > maxAgeSeconds())) {
|
||||||
toRefresh.push_back(it->second);
|
toRefresh.push_back(it->second);
|
||||||
}
|
}
|
||||||
|
@ -260,5 +260,8 @@ SGPath SGSoundSample::file_path() const
|
|||||||
|
|
||||||
void SGSoundSample::free_data()
|
void SGSoundSample::free_data()
|
||||||
{
|
{
|
||||||
if ( _data != NULL ) free( _data ); _data = NULL;
|
if ( _data != NULL ) {
|
||||||
|
free( _data );
|
||||||
|
}
|
||||||
|
_data = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user