: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);
:
: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.
:Printf(), hence, wouldn't see a difference (of course). Gcc should not
:complain about various void pointer things like this.

    I think that's an appropriate warning... if you want to treat 'region'
    as a char *, you have to cast it to one.  The standards do not cover
    GCC's automatic var-args checking for printf() and related routines
    anyway.  I consider them 'weird' cases myself... not really standard,
    but helpful.

                                        -Matt
                                        Matthew Dillon 
                                        <dil...@backplane.com>

: Brian Feldman                                   _ __  ___ ___ ___  
: gr...@unixhelp.org                          _ __ ___ | _ ) __|   \ 
:            http://www.freebsd.org/     _ __ ___ ____ | _ \__ \ |) |
: FreeBSD: The Power to Serve!     _ __ ___ ____ _____ |___/___/___/ 


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

Reply via email to