test_return_value = TET_PASS;
}
-namespace
-{
-int gOriginalOptIndValue(0);
-}
-
-
int UtcDaliCommandLineOptionsNoArgs(void)
{
optind=1;
{
optind = 1; // Reset opt for test
- char* argList[] =
+ const char* argList[] =
{
"program",
"--width=800",
"-r",
};
int argc( sizeof( argList ) / sizeof( argList[0] ) );
- char** argv = argList;
+ char** argv = const_cast<char**>( argList );
CommandLineOptions options( &argc, &argv );
{
optind=1;
- char* argList[] =
+ const char* argList[] =
{
"program",
"--width=800",
"-y", "600",
};
int argc( sizeof( argList ) / sizeof( argList[0] ) );
- char** argv = argList;
+ char** argv = const_cast<char**>( argList );
CommandLineOptions options( &argc, &argv );
{
optind=1;
- char* argList[] =
+ const char* argList[] =
{
"program",
"hello-world",
"--height", "1000",
};
int argc( sizeof( argList ) / sizeof( argList[0] ) );
- char** argv = argList;
+ char** argv = const_cast<char**>( argList );
CommandLineOptions options( &argc, &argv );
#include <iostream>
#include <stdlib.h>
+#include <stdint.h>
#include <Ecore.h>
#include <dali/dali.h>
#include <dali-test-suite-utils.h>
bool ecore_timer_running = false;
Ecore_Task_Cb timer_callback_func=NULL;
const void* timer_callback_data=NULL;
-bool main_loop_can_run = false;
-int timerId = 8;
+intptr_t timerId = 8; // intptr_t has the same size as a pointer and is platform independent so this can be returned as a pointer in ecore_timer_add below without compilation warnings
}// anon namespace
extern "C"
{
#include <iostream>
#include <stdlib.h>
+#include <stdint.h>
#include <dali/dali.h>
#include <Ecore.h>
#include <dali-test-suite-utils.h>
Ecore_Task_Cb timer_callback_func=NULL;
const void* timer_callback_data=NULL;
bool main_loop_can_run = false;
-int timerId = 0;
+intptr_t timerId = 0; // intptr_t has the same size as a pointer and is platform independent so this can be returned as a pointer in ecore_timer_add below without compilation warnings
}// anon namespace
extern "C"