From cccd4269cb6adc764994e12be75a37c369722700 Mon Sep 17 00:00:00 2001 From: vsr Date: Sat, 5 Nov 2011 16:50:30 +0000 Subject: [PATCH] Fix compilation warnings --- src/KernelHelpers/KernelHelpersUseCases.cxx | 2 +- src/KernelHelpers/Test/KernelHelpersUnitTests.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.39.2