Eh, I assume it's just warning you not to try and change it's value in the function. I don't normally mind the warnings since they're descriptive and unobtrusive (usually). They help solve some common beginner problems as well. You can turn off specific of the warnings in preferences, but I don't know if there is a -w flag.
_________________ sudo rm -rf /
Mon Oct 22, 2012 8:21 pm
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
Re: & warning on const
Well the underlying message is that it treated it as an AND. The code still works as (nothing) AND an assumed address - but may lead to other problems in other ways if that is not the intention.
I suspect it is an unintended compiler parser result. Just thought I'd give the team a heads up, either way.
edit: I see address of is indeed a unary operator - I never thought of it as such - but ok, never mind.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum