Unused Variable Error from comp

More
25 Apr 2009 17:30 - 25 Apr 2009 17:32 #155 by BigJohnT
I'm writing a hal component using comp. I'm getting a weird error that does not make sense to me.
...trunk/src/objects/hal/components/thc.c: In function ‘export’:
...trunk/src/objects/hal/components/thc.c:102: warning: unused variable ‘j’

I don't have a variable 'j' anywhere in the comp so I'm confused now...

Thanks
John
Last edit: 25 Apr 2009 17:32 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
25 Apr 2009 23:10 #158 by BigJohnT
Turns out it is a cryptic message from comp or somewhere telling me that I had declared a variable that I had not used yet. I guess that when comp does it's thing it generates names as it likes...

John

Please Log in or Create an account to join the conversation.

More
26 Apr 2009 12:04 #159 by BigJohnT
Turns out this was a minor bug... you just never know. Jepler fixed it so it no longer throws a error if you create a variable but don't use it in a comp file.

Thanks Jepler

John

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum