From 4e201b91961b385dfe6fa4625a37f43c37b7d5d5 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 6 Jul 2011 08:57:40 +0000 Subject: [PATCH] avoid warning: comparison with string literal results in unspecified behaviour --- packages/vtk/src/bbvtkStructuredPointsReader.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.47.1