This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/57647] lvalue required as increment operand


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]