DragonFly BSD
DragonFly submit List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [PATCH] sbin/mount WARNS=6 cleanups


From: Peter Schuller <peter.schuller@xxxxxxxxxxxx>
Date: Sun, 3 Apr 2005 01:34:10 +0200

>      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@xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey@xxxxxxxxx
E-Mail: peter.schuller@xxxxxxxxxxxx Web: http://www.scode.org




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]