Re:Your code should be taken out back, lined up against a wa...
by fintler on Tuesday July 27, 2010 @02:20PM
(#1552139)
Yep, it's basically undefined because a void type has no known size to do pointer arithmetic with.
[ Parent
| on HN ]
Re:Your code should be taken out back, lined up against a wa...
by koenigdavidmj on Tuesday July 27, 2010 @02:28PM
(#1552175)
GCC whines and moans, but treats it like a pointer to char.
Re:Your code should be taken out back, lined up against a wa...
by tptacek on Tuesday July 27, 2010 @05:17PM
(#1552759)
GCC does not whine and moan about this, even if you ask for it to.
Re:Your code should be taken out back, lined up against a wa...
by koenigdavidmj on Tuesday July 27, 2010 @08:13PM
(#1553144)
Oh, right. (Forgot that my `gcc` is a shell script that adds a bunch of `-W` options.) You can ask for it with -Wpointer-arith.