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 pmPosts: 197

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.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum