>In cases, -Wall is bogus anyway. Here's one:
>foo.c:89: warning: char format, void arg (arg 2)
>        void *region;
>                printf("mem open failed: %s\n", region);

Yes, it should say "warning: char * format, void * arg (arg 2)".

>According to standards, a void pointer may be freely used instead of any
>other type of pointer, both as an lvalue and to assign to the other pointer.

There are no lvalues or assigns to another pointer here.  The code does
what you want (if `region' is a char * represented as a void *) only
because void * has the same representation as char *.

Bruce

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to