This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/57647] lvalue required as increment operand
- From: "vijunag at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jun 2013 08:33:33 +0000
- Subject: [Bug c/57647] lvalue required as increment operand
- Auto-submitted: auto-generated
- References: <bug-57647-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57647
--- Comment #4 from vijay Nag <vijunag at gmail dot com> ---
(In reply to Marek Polacek from comment #3)
> It should work for any type, but, why don't you do only foo++;, i.e. drop
> the cast? In that case there shouldn't be value computed is not used
> warning.
Pointer Arithmetic.
I want to advance the pointer by sizeof(unsigned long) but not by sizeof(char).