![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Unused variable in generated code Topic Summary: Created On: 25-Apr-2006 08:39 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thank you for the information
![]() I'm looking forward to a solution. ------------------------- Jesper Gissel Johnson Controls Denmark, Marine Controls |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Unused variable in generated code
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.