Skip to content

Commit

Permalink
Fix build error.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (CC/EMT2) <Timothy.Rule@de.bosch.com>
  • Loading branch information
timrulebosch committed Dec 1, 2023
1 parent ea503c5 commit bbb1e96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dse/clib/fmi/fmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ typedef struct storage_bucket {


/* fmu.c */
DLL_PRIVATE void* model_create(
DLL_PRIVATE FmuModelDesc* model_create(
void* fmu_inst, FmuMemAllocFunc mem_alloc, FmuMemFreeFunc mem_free);
DLL_PRIVATE void model_finalize(FmuModelDesc* model_desc);
/* Model API (implemented by the Model). */
Expand All @@ -138,7 +138,7 @@ DLL_PRIVATE void model_destroy(FmuModelDesc* model_desc);

/* storage.c */
DLL_PRIVATE int storage_init(FmuModelDesc* model_desc);
DLL_PRIVATE void* storage_get_bucket(
DLL_PRIVATE storage_bucket* storage_get_bucket(
FmuModelDesc* model_desc, storage_type type);
DLL_PRIVATE void* storage_ref(
FmuModelDesc* model_desc, unsigned int vr, storage_type type);
Expand Down
4 changes: 4 additions & 0 deletions dse/clib/fmi/importer.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ int fmu_step(FmuInstDesc* inst, double* model_time, double stop_time)
assert(inst);
assert(inst->strategy);
assert(inst->strategy->exec_func);
UNUSED(model_time);
UNUSED(stop_time);

// TODO set model time, stop time.

Expand Down Expand Up @@ -87,6 +89,8 @@ void fmu_map_variables(FmuInstDesc* inst, FmiValueType value_type, char** names,
void** values, size_t count)
{
assert(inst);
UNUSED(value_type);

if (count == 0) return;
if (inst->inst_data == NULL) {
inst->inst_data = calloc(1, sizeof(SignalMap));
Expand Down
2 changes: 0 additions & 2 deletions dse/clib/fmi/strategy.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ Returns
*/
int fmi2_cosim_execute(FmuInstDesc* inst, FmuStrategyAction action)
{
int models_active;

switch (action) {
case FMU_STRATEGY_ACTION_LOAD:
/* Call the FMU Adapter Load method. */
Expand Down

0 comments on commit bbb1e96

Please sign in to comment.