Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3457 closed defect (fixed)

Codegen issue after back end changes

Reported by: lochel Owned by: lochel
Priority: high Milestone: 1.9.4
Component: Code Generation Version:
Keywords: Cc: adrpo

Description

simulation/libraries/msl32/Modelica.Electrical.Digital.Examples.RAM.mos fails after the latest back end changes (#3452):

Modelica.Electrical.Digital.Examples.RAM_06inz.c:358:27: warning: implicit declaration of function 'omc_Modelica_Electrical_Digital_Memories_DLATRAM_getMemory' is invalid in C99 [-Wimplicit-function-declarati$
  copy_integer_array_data(omc_Modelica_Electrical_Digital_Memories_DLATRAM_getMemory(threadData, $PdLATRAM$PfileName, (modelica_integer) 2, (modelica_integer) 2, NULL, NULL), &tmp18);
                          ^
Modelica.Electrical.Digital.Examples.RAM_06inz.c:358:27: error: passing 'int' to parameter of incompatible type 'integer_array_t' (aka 'struct base_array_s')
  copy_integer_array_data(omc_Modelica_Electrical_Digital_Memories_DLATRAM_getMemory(threadData, $PdLATRAM$PfileName, (modelica_integer) 2, (modelica_integer) 2, NULL, NULL), &tmp18);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lochel/OpenModelica/build/include/omc/c/util/integer_array.h:85:59: note: passing argument to parameter 'source' here
extern void copy_integer_array_data(const integer_array_t source, integer_array_t* dest);
                                                          ^
1 warning and 1 error generated.

Change History (4)

comment:1 Changed 9 years ago by lochel

  • Status changed from new to accepted

comment:2 Changed 9 years ago by lochel

  • Resolution set to fixed
  • Status changed from accepted to closed

comment:3 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.4-1.9.x

Milestone renamed

comment:4 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4-1.9.x to 1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.