Opened 9 years ago
Closed 9 years ago
#4292 closed defect (fixed)
MetaModelica includes are missing in some cases
| Reported by: | Adrian Pop | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | high | Milestone: | Future |
| Component: | MetaModelica | Version: | |
| Keywords: | Cc: |
Description
In NFCall.mo we have:
import Types; variability := Types.constAnd(v for v in arg_var);
However, in NFCall_includes.h the Types.h is not included and we get a warning:
OMCompiler/Compiler/NFFrontEnd/NFCall.mo: In function 'omc_NFCall_typeCall': OMCompiler/Compiler/NFFrontEnd/NFCall.mo:127:31: warning: implicit declaration of function 'omc_Types_constAnd' [-Wimplicit-function-declaration] variability := Types.constAnd(v for v in arg_var); ^ OMCompiler/Compiler/NFFrontEnd/NFCall.mo:127:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion] variability := Types.constAnd(v for v in arg_var);
This seems to be an issue in CevalScript.generateFunctions2
where we collect the qualified paths:
(_,(_,dependencies)) := DAEUtil.traverseDAEFunctions(d,Expression.traverseSubexpressionsHelper,(matchQualifiedCalls,{}));
Change History (3)
comment:1 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Fixed in b1a493/OMCompiler.
Note:
See TracTickets
for help on using tickets.

Should be fixed by PR: https://github.com/OpenModelica/OMCompiler/pull/1513