From: vsr Date: Sat, 5 Nov 2011 16:50:30 +0000 (+0000) Subject: Fix compilation warnings X-Git-Tag: RELIQUAT_6x_15112011~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cccd4269cb6adc764994e12be75a37c369722700;p=modules%2Fkernel.git Fix compilation warnings --- diff --git a/src/KernelHelpers/KernelHelpersUseCases.cxx b/src/KernelHelpers/KernelHelpersUseCases.cxx index a96702907..1d788b92b 100644 --- a/src/KernelHelpers/KernelHelpersUseCases.cxx +++ b/src/KernelHelpers/KernelHelpersUseCases.cxx @@ -52,7 +52,7 @@ bool TEST_getLifeCycleCORBA() { Engines::TestComponent_var engine = Engines::TestComponent::_narrow(component); char * coucou_res = engine->Coucou(123.); - char * coucou_ref = "L = 123"; + const char * coucou_ref = "L = 123"; LOG(coucou_res); if ( strcmp(coucou_res, coucou_ref) == 0 ) { return false; diff --git a/src/KernelHelpers/Test/KernelHelpersUnitTests.cxx b/src/KernelHelpers/Test/KernelHelpersUnitTests.cxx index 70876a7da..165008e89 100644 --- a/src/KernelHelpers/Test/KernelHelpersUnitTests.cxx +++ b/src/KernelHelpers/Test/KernelHelpersUnitTests.cxx @@ -72,7 +72,7 @@ void KernelHelpersUnitTests::TEST_getLifeCycleCORBA() { Engines::TestComponent_var engine = Engines::TestComponent::_narrow(component); char * coucou_res = engine->Coucou(123.); - char * coucou_ref = "TestComponent_i : L = 123"; + const char * coucou_ref = "TestComponent_i : L = 123"; LOG(coucou_res); CPPUNIT_ASSERT( strcmp(coucou_res, coucou_ref) == 0 ); }