Re: [PATCH] sbin/mount WARNS=6 cleanups
> 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@infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey@scode.org
E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):