Opened 4 years ago

Closed 4 years ago

#6403 closed defect (fixed)

[CG] Bad use of ModelicaMessage

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: 1.17.0
Component: Code Generation Version: 1.18.0-dev
Keywords: Cc:

Description

We use ModelicaMessage when we should use our own internal messaging:

Compiler/Template/CodegenCppOld.tpl:       'ModelicaMessage("Using default Clock(1.0)!");'
Compiler/Template/CodegenCpp.tpl:       'ModelicaMessage("Using default Clock(1.0)!");'
Compiler/Template/CodegenC.tpl:       'ModelicaMessage("Using default Clock(1.0)!");'

Change History (4)

comment:1 by Adrian Pop, 4 years ago

This has issues on Mac with clang

Model_15syn.c:59:7: error: implicit declaration of function 'ModelicaMessage' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ModelicaMessage("Using default Clock(1.0)!");

comment:2 by Adrian Pop, 4 years ago

Owner: changed from Mahder Alemseged Gebremedhin to Adrian Pop
Status: newaccepted

comment:4 by Adrian Pop, 4 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.