Opened 8 years ago

Closed 8 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 Adrian Pop, 8 years ago

Owner: changed from Martin Sjölund to Adrian Pop
Status: newaccepted

comment:3 by Adrian Pop, 8 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in b1a493/OMCompiler.

Note: See TracTickets for help on using tickets.