Opened 8 years ago

Closed 8 years ago

#4292 closed defect (fixed)

MetaModelica includes are missing in some cases

Reported by: adrpo Owned by: adrpo
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 Changed 8 years ago by adrpo

  • Owner changed from sjoelund.se to adrpo
  • Status changed from new to accepted

comment:3 Changed 8 years ago by adrpo

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

Fixed in b1a493/OMCompiler.

Note: See TracTickets for help on using tickets.