Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3457 closed defect (fixed)

Codegen issue after back end changes

Reported by: Lennart Ochel Owned by: Lennart Ochel
Priority: high Milestone: 1.9.4
Component: Code Generation Version:
Keywords: Cc: Adrian Pop

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 by Lennart Ochel, 9 years ago

Status: newaccepted

comment:2 by Lennart Ochel, 9 years ago

Resolution: fixed
Status: acceptedclosed

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.