Re: [AD] [BUG] ccolconv.c void * arith.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Chris wrote:


I don't know if -Wpointer-arith would be wise.. wouldn't that disable any math on any pointer type? It sounds like it would, anyway.


`-Wpointer-arith'
    Warn about anything that depends on the "size of" a function type
    or of `void'.  GNU C assigns these types a size of 1, for
    convenience in calculations with `void *' pointers and pointers to
    functions.

I tried it for configure --enable-strictwarn and it seemed fine (after s/void */unsigned char */ in ccolconv.c).

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/