Codegen issue after back end changes
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)
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Milestone: |
1.9.4 → 1.9.4-1.9.x
|
Milestone: |
1.9.4-1.9.x → 1.9.4
|
Fixed in ef0a90639dc4b61612b0dc0b35fc8038ee883fb2/OMCompiler.
Test reactivated in 3aff9343bb17ef8d732ffa65b60118c21037f4bc/OpenModelica-testsuite