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

看板DFBSD_submit作者時間21年前 (2005/04/03 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
> 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
文章代碼(AID): #12Jojv00 (DFBSD_submit)
文章代碼(AID): #12Jojv00 (DFBSD_submit)