From: jean-pierre roux Date: Wed, 6 Jul 2011 08:57:40 +0000 (+0000) Subject: avoid warning: comparison with string literal results in unspecified behaviour X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4e201b91961b385dfe6fa4625a37f43c37b7d5d5;p=bbtk.git avoid warning: comparison with string literal results in unspecified behaviour --- diff --git a/packages/vtk/src/bbvtkStructuredPointsReader.cxx b/packages/vtk/src/bbvtkStructuredPointsReader.cxx index 1c0b182..21bfd47 100644 --- a/packages/vtk/src/bbvtkStructuredPointsReader.cxx +++ b/packages/vtk/src/bbvtkStructuredPointsReader.cxx @@ -26,7 +26,10 @@ void StructuredPointsReader::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') - if ( bbGetInputIn().c_str()!="") + //warning: comparison with string literal results in unspecified behaviour + //if ( bbGetInputIn().c_str()!="") + std::string empty(""); // JPR + if ( bbGetInputIn().c_str()!=empty) { spr -> SetFileName( bbGetInputIn().c_str() ); sp = spr->GetOutput();