From: Gabriel Corona Date: Tue, 31 May 2016 10:48:27 +0000 (+0200) Subject: Fix compilation when enable_smpi=OFF X-Git-Tag: v3_14~1084^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/09556cd3f19b5fbf671ff88521714194f0cd3930 Fix compilation when enable_smpi=OFF --- diff --git a/src/instr/instr_trace.cpp b/src/instr/instr_trace.cpp index 850f75efca..e5ebbf2a3c 100644 --- a/src/instr/instr_trace.cpp +++ b/src/instr/instr_trace.cpp @@ -343,11 +343,13 @@ void new_pajeSetState (double timestamp, container_t container, type_t type, val ((setState_t)(event->data))->container = container; ((setState_t)(event->data))->value = value; +#if HAVE_SMPI if (xbt_cfg_get_boolean("smpi/trace-call-location")) { smpi_trace_call_location_t* loc = smpi_trace_get_call_location(); ((setState_t)(event->data))->filename = loc->filename; ((setState_t)(event->data))->linenumber = loc->linenumber; } +#endif XBT_DEBUG("%s: event_type=%d, timestamp=%f", __FUNCTION__, (int)event->event_type, event->timestamp); @@ -368,11 +370,13 @@ void new_pajePushStateWithExtra (double timestamp, container_t container, type_t ((pushState_t)(event->data))->value = value; ((pushState_t)(event->data))->extra = extra; +#if HAVE_SMPI if (xbt_cfg_get_boolean("smpi/trace-call-location")) { smpi_trace_call_location_t* loc = smpi_trace_get_call_location(); ((pushState_t)(event->data))->filename = loc->filename; ((pushState_t)(event->data))->linenumber = loc->linenumber; } +#endif XBT_DEBUG("%s: event_type=%d, timestamp=%f", __FUNCTION__, (int)event->event_type, event->timestamp);