Opened 8 years ago

Closed 8 years ago

#4170 closed defect (fixed)

Warnings in C code of models simulating successfully

Reported by: Francesco Casella Owned by: Lennart Ochel
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 by Henning Kiel, 8 years ago

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

comment:2 by Francesco Casella, 8 years ago

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

Status: newaccepted

I will add the changes to the maintenance branch.

comment:4 by Lennart Ochel, 8 years ago

Resolution: fixed
Status: acceptedclosed

Added with OMCompiler#1312.

Note: See TracTickets for help on using tickets.