git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC (take 3)] autoconf: Add test for OLD_ICONV (squelching compiler warning)

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 7, 2007, 07:26 UTC
Message-ID
<7v7ijr7yph.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1196990840-1168-1-git-send-email-jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 20 quoted lines
> On Fri, 7 Dec 2007, Blake Ramsdell wrote:
>> On Dec 6, 2007 4:41 PM, Blake Ramsdell <blaker@gmail.com> wrote:
>>> On Dec 6, 2007 4:30 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:
>>>> Umm. Why not just make the test be whether the following compiles cleanly?
>>>>
>>>>         #include <iconv.h>
>>>>
>>>>         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.
>
> Is something like the patch below what you wanted to try?
This looks sensible.  Will apply.
Previous: Jakub NarebskiNext: Wincent Colaiuta
Message 9 of 12 in “Silence iconv warnings on Leopard”
  1. Silence iconv warnings on LeopardWincent Colaiuta, Dec 6, 2007
  2. Blake RamsdellDec 6, 2007
  3. Jakub NarebskiDec 7, 2007
  4. Blake RamsdellDec 7, 2007
  5. Linus TorvaldsDec 7, 2007
  6. Blake RamsdellDec 7, 2007
  7. Blake RamsdellDec 7, 2007
  8. autoconf: Add test for OLD_ICONV (squelching compiler warning)Jakub Narebski, Dec 7, 2007
  9. Junio C HamanoDec 7, 2007
  10. Wincent ColaiutaDec 7, 2007
  11. Wincent ColaiutaDec 7, 2007
  12. Blake RamsdellDec 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.