Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Unused variable in generated code
Topic Summary:
Created On: 25-Apr-2006 08:39
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 25-Apr-2006 08:39
User is offline View Users Profile Print this message


Jesper Gissel

Posts: 88
Joined: 20-Jul-2005

Hi,

I'm having a pretty annoying problem! I'm getting lots and lots of compiler warnings from my GCC compiler when I compile classes with ports.
It looks like the CG generates an unused variable, namely p_InBound:

[CODE]
void MyClass::MyPort_C::InBound_C::cleanUpRelations() {
if(itsMyInterface != NULL)
{
itsMyInterface = NULL;
}
if(port != NULL)
{
MyClass::MyPort_C::InBound_C* p_InBound = port->getInBound(); // p_InBound is unused!
port = NULL;
}
}
[/CODE]

Is there any way to come around this?

By the way, will I see any of you guys at the User Group meeting in Schwarzenfeld in May?

-------------------------
Jesper Gissel
Johnson Controls Denmark, Marine Controls
Report this to a Moderator Report this to a Moderator
 30-May-2006 10:17
User is offline View Users Profile Print this message


Default User

Posts: 4
Joined: 4-May-2005

Hi Jesper,

This is just a quick note to say that we've come across this problem too, and made a support call for it, which is still pending.

Regards,
Tim
--
Tim Shaw / Abraxas plc Email: [email]Tim.Shaw.GP@icn.siemens.de[/email]
Com MN PG P D A1 (ext.) Tel: +49 89 722-26216
Siemens Mobile Networks / Building 7205 Room 442 / Schertlinstrasse 8 / D-81379 München / Germany
Report this to a Moderator Report this to a Moderator
 30-May-2006 10:21
User is offline View Users Profile Print this message


Jesper Gissel

Posts: 88
Joined: 20-Jul-2005

Thank you for the information

I'm looking forward to a solution.

-------------------------
Jesper Gissel
Johnson Controls Denmark, Marine Controls
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.