From: Blake Ramsdell Date: Fri, 07 Dec 2007 00:44:04 GMT Subject: Re: [PATCH] Silence iconv warnings on Leopard Message-ID: <985966520712061644k72a4c4ecpfe26d4e00d14b337@mail.gmail.com> In-Reply-To: <985966520712061641y4eba054dj5dea1d0308d50b12@mail.gmail.com> On Dec 6, 2007 4:41 PM, Blake Ramsdell wrote: > On Dec 6, 2007 4:30 PM, Linus Torvalds wrote: > > Umm. Why not just make the test be whether the following compiles cleanly? > > > > #include > > > > extern size_t iconv(iconv_t cd, > > char **inbuf, size_t *inbytesleft, > > char **outbuf, size_t *outbytesleft); > > > > because if the compiler has seen a "const char **inbuf", then it should > > error out with a "conflicting types for 'iconv'" style message.. > > Yeah, this is what I did: My apologies. Your suggestion is completely different, and should work without -Werror. Let me try that. Blake -- Blake Ramsdell | http://www.blakeramsdell.com