X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eee21ec5f99218189fc98898a09150294cd0fbf4..b6e0974be6616f62aa724f7ec7ad1cff1b421e1e:/src/surf/cpu_ti.cpp?ds=sidebyside diff --git a/src/surf/cpu_ti.cpp b/src/surf/cpu_ti.cpp index 922c9c7dbd..484d895b6d 100644 --- a/src/surf/cpu_ti.cpp +++ b/src/surf/cpu_ti.cpp @@ -409,7 +409,7 @@ void surf_cpu_model_init_ti() CpuTiModel::CpuTiModel() : CpuModel("cpu_ti") { xbt_assert(!surf_cpu_model_pm,"CPU model already initialized. This should not happen."); - ActionPtr action; + ActionPtr action = NULL; CpuTi cpu; cpu_ti_running_action_set_that_does_not_need_being_checked = @@ -483,7 +483,7 @@ CpuTiPtr CpuTiModel::createResource(const char *name, return (CpuTiPtr) xbt_lib_get_elm_or_null(host_lib, name); } -CpuTiActionPtr CpuTiModel::createAction(double cost, bool failed) +CpuTiActionPtr CpuTiModel::createAction(double /*cost*/, bool /*failed*/) { return NULL;//new CpuTiAction(this, cost, failed); } @@ -506,7 +506,7 @@ double CpuTiModel::shareResources(double now) return min_action_duration; } -void CpuTiModel::updateActionsState(double now, double delta) +void CpuTiModel::updateActionsState(double now, double /*delta*/) { while ((xbt_heap_size(cpu_ti_action_heap) > 0) && (xbt_heap_maxkey(cpu_ti_action_heap) <= now)) { @@ -595,7 +595,7 @@ CpuTi::CpuTi(CpuTiModelPtr model, const char *name, xbt_dynar_t powerPeak, XBT_DEBUG("power scale %lf", powerScale); p_availTrace = new CpuTiTgmr(powerTrace, powerScale); - CpuTiActionPtr action; + CpuTiActionPtr action = NULL; p_actionSet = xbt_swag_new(xbt_swag_offset(*action, p_cpuListHookup)); xbt_dynar_get_cpy(powerPeak, 0, &m_powerPeak); @@ -998,9 +998,5 @@ double CpuTiAction::getRemains() return m_remains; } -static void check() { - CpuTiActionPtr cupAction = new CpuTiAction(NULL, 0, true); -} - #endif /* SURF_MODEL_CPUTI_H_ */