From df3f831e4e4f8814e700a72cd9ad3bc9efc3ad0b Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 27 Jul 2011 14:01:00 +0000 Subject: [PATCH] warning: comparison with string literal results in unspecified behaviour --- src/creaImageIOVtkImageReader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/creaImageIOVtkImageReader.cpp b/src/creaImageIOVtkImageReader.cpp index 0c38827..4c70cbd 100644 --- a/src/creaImageIOVtkImageReader.cpp +++ b/src/creaImageIOVtkImageReader.cpp @@ -13,7 +13,10 @@ namespace creaImageIO{ if (name.size() == 0) { const char *test =mReader->GetDescriptiveName(); - if(test != "") + //warning: comparison with string literal results in unspecified behaviour + //if(test != "") + std::string emptyString(""); + if(test != emptyString) { SetName ( "toto");// mReader->GetDescriptiveName()); } -- 2.47.1