Nantes Université

Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 254c6970 rédigé par Jacek Czerwonka's avatar Jacek Czerwonka Validation de GitHub
Parcourir les fichiers

Fixing a "unused variable warning" (#91)

Fixing a "unused variable warning"
parent d529bb15
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -366,7 +366,14 @@ bool CModelData::readParamSet( wstring& line )
++index;
}
// at this point we should always match the name
assert( found );
//
// N.B. putting a condition around an assert is superfluous but it is done here
// because some compilers complain that 'found' variable is never used and
// this is a cross-platform friendly way to suppress such warnings
if( !found )
{
assert( found );
}
submodel.Parameters.push_back( index );
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter