X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fsplines%2Fsplines.cpp;h=901b4f2c819f6d9373f57de94fe18e5f728e3b50;hp=05cb3bf972c09d5b6723be51710b0c088f9fac5a;hb=81ab1fe02f887ccf43e1755ed44811ff4fd693c3;hpb=dac8329952745dbb494bad1c301e44bab05ec0db diff --git a/libs/splines/splines.cpp b/libs/splines/splines.cpp index 05cb3bf9..901b4f2c 100644 --- a/libs/splines/splines.cpp +++ b/libs/splines/splines.cpp @@ -653,6 +653,7 @@ void idCameraDef::buildCamera() { for ( i = 0; i < events.Num(); i++ ) { events[i]->setTriggered( false ); switch ( events[i]->getType() ) { + default: break; case idCameraEvent::EVENT_TARGET: { targets.Append( i ); break; @@ -1166,7 +1167,7 @@ void idFixedPosition::parse( const char *( *text ) ) { Com_UngetToken(); idStr key = Com_ParseOnLine( text ); - const char *token = Com_Parse( text ); + Com_Parse( text ); if ( Q_stricmp( key.c_str(), "pos" ) == 0 ) { Com_UngetToken(); Com_Parse1DMatrix( text, 3, pos ); @@ -1175,7 +1176,7 @@ void idFixedPosition::parse( const char *( *text ) ) { Com_UngetToken(); idCameraPosition::parseToken( key.c_str(), text ); } - token = Com_Parse( text ); + Com_Parse( text ); } while ( 1 ); @@ -1212,7 +1213,7 @@ void idInterpolatedPosition::parse( const char *( *text ) ) { Com_UngetToken(); idStr key = Com_ParseOnLine( text ); - const char *token = Com_Parse( text ); + Com_Parse( text ); if ( Q_stricmp( key.c_str(), "startPos" ) == 0 ) { Com_UngetToken(); Com_Parse1DMatrix( text, 3, startPos ); @@ -1225,7 +1226,7 @@ void idInterpolatedPosition::parse( const char *( *text ) ) { Com_UngetToken(); idCameraPosition::parseToken( key.c_str(), text ); } - token = Com_Parse( text ); + Com_Parse( text ); } while ( 1 ); @@ -1263,7 +1264,7 @@ void idSplinePosition::parse( const char *( *text ) ) { Com_UngetToken(); idStr key = Com_ParseOnLine( text ); - const char *token = Com_Parse( text ); + Com_Parse( text ); if ( Q_stricmp( key.c_str(), "target" ) == 0 ) { target.parse( text ); } @@ -1271,7 +1272,7 @@ void idSplinePosition::parse( const char *( *text ) ) { Com_UngetToken(); idCameraPosition::parseToken( key.c_str(), text ); } - token = Com_Parse( text ); + Com_Parse( text ); } while ( 1 );