News for hackers. Stuff that matters.
Re:Android Project Changeset 4f8b683: libc/memset.c by tedunangst on Tuesday May 25, 2010 @10:17PM (#1379318)
Then you get a "statement with no effect" warning, which is usually more serious. I'll take a bogus warning in real code over a bogus warning in contrived code any day.
Re:Android Project Changeset 4f8b683: libc/memset.c by cperciva on Tuesday May 25, 2010 @10:50PM (#1379362)
I've never seen a compiler issue a warning about "(void)foo;". Even compilers which issue 'statement with no effect' warnings normally recognize deliberate casts to void as a way of saying "shut up, I know what I'm doing".