[PATCH] sbin/mount WARNS=6 cleanups

Peter Schuller peter.schuller at infidyne.com
Sat Apr 2 15:28:49 PST 2005


>      I committed the first part.  The second part is a bit too much of a hack
>      just to fix the qualifiers.  That actually seems to me to be a bug in GCC.
>      It shouldn't have any problem casting char ** to char * const * but it does.

But argv in this case is, by necessity, a const char** (note that the argv in
question was local to the function; not the usual char **argv of main()).

I suppose the real question is whether the possibility of a destructive getopt() in
the future is enough to warrant the hoopla required to fix this little detail.

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey at xxxxxxxxx
E-Mail: peter.schuller at xxxxxxxxxxxx Web: http://www.scode.org






More information about the Submit mailing list