Opened 8 years ago

Closed 8 years ago

#4170 closed defect (fixed)

Warnings in C code of models simulating successfully

Reported by: casella Owned by: lochel
Priority: high Milestone: 1.11.0
Component: Code Generation Version:
Keywords: Cc:

Description

If I compile Modelica.Blocks.Examples.Filter with the most recent nightly I installed, I get 7 different warning messages of type "warning: excess elements in struct initializer". Incidentally, these show up in red in the compilation log of OMEdit, which IMHO doesn't look nice at all.

I am not able to judge if these warnings are about a potentially serious situation, or no big deal. In general, I learned by experience that ignoring compiler warnings a priori is usually not a good idea.

If that is not too hard, I would suggest to fix the code generation so that these warnings are no longer generated.

Change History (4)

comment:1 Changed 8 years ago by hkiel

This is a duplicate of #4165.
Should already be fixed in OMCompiler#1270

comment:2 Changed 8 years ago by casella

I confirm this is fixed in the 1.12.0 nightly, but it was still present in 1.11.0 Beta1. I'm not sure if this fix has also been applied to 1.11.0 maintenance in the meantime.

If not, please do so ASAP, so this gets included in the official release.

Thanks.

comment:3 Changed 8 years ago by lochel

  • Status changed from new to accepted

I will add the changes to the maintenance branch.

comment:4 Changed 8 years ago by lochel

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

Added with OMCompiler#1312.

Note: See TracTickets for help on using tickets.