From: navarro Date: Fri, 12 Oct 2012 12:52:49 +0000 (+0200) Subject: Compilation with warning flags X-Git-Tag: v3_8~69 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cfcc26205c43c7ee01341db3d2910f5efbd2fa6b Compilation with warning flags --- diff --git a/src/simix/smx_global.c b/src/simix/smx_global.c index 5a350c2366..100e0fb62f 100644 --- a/src/simix/smx_global.c +++ b/src/simix/smx_global.c @@ -449,6 +449,13 @@ void SIMIX_display_process_status(void) case SIMIX_ACTION_IO: action_description = "I/O"; + break; + /* **************************************/ + /* TUTORIAL: New API */ + case SIMIX_ACTION_NEW_API: + action_description = "NEW API"; + /* **************************************/ + break; } XBT_INFO("Process %lu (%s@%s): waiting for %s action %p (%s) in state %d to finish", diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index dfeae73515..a25b215d55 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -333,6 +333,14 @@ void SIMIX_process_kill(smx_process_t process, smx_process_t issuer) { case SIMIX_ACTION_IO: SIMIX_io_destroy(process->waiting_action); break; + + /* **************************************/ + /* TUTORIAL: New API */ + case SIMIX_ACTION_NEW_API: + SIMIX_new_api_destroy(process->waiting_action); + break; + /* **************************************/ + } } if(!xbt_dynar_member(simix_global->process_to_run, &(process)) && process != issuer) { diff --git a/src/surf/new_model.c b/src/surf/new_model.c index 2db0dada7d..ea2b572cdc 100644 --- a/src/surf/new_model.c +++ b/src/surf/new_model.c @@ -29,13 +29,6 @@ static xbt_swag_t #define GENERIC_ACTION(action) GENERIC_LMM_ACTION(action).generic_action static void new_model_action_state_set(surf_action_t action, e_surf_action_state_t state); -static surf_action_t new_model_action_execute (); - -static surf_action_t new_model_action_fct() -{ - surf_action_t action = new_model_action_execute(); - return action; -} static surf_action_t new_model_action_execute () { @@ -43,6 +36,12 @@ static surf_action_t new_model_action_execute () return NULL; } +static surf_action_t new_model_action_fct() +{ + surf_action_t action = new_model_action_execute(); + return action; +} + static void* new_model_create_resource(const char* id, const char* model,const char* type_id,const char* content_name) { THROW_UNIMPLEMENTED;