From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH/RFC (take 3)] autoconf: Add test for OLD_ICONV (squelching compiler warning) Date: Thu, 06 Dec 2007 23:26:02 -0800 Message-ID: <7v7ijr7yph.fsf@gitster.siamese.dyndns.org> References: <1196990840-1168-1-git-send-email-jnareb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org, Linus Torvalds , Blake Ramsdell , Wincent Colaiuta , Pascal Obry , Ramsay Jones , Arjen Laarhoven , Brian Gernhardt To: Jakub Narebski X-From: git-owner@vger.kernel.org Fri Dec 07 08:27:00 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1J0Xbs-0001d6-7q for gcvg-git-2@gmane.org; Fri, 07 Dec 2007 08:26:56 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbXLGH0d (ORCPT ); Fri, 7 Dec 2007 02:26:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751423AbXLGH0d (ORCPT ); Fri, 7 Dec 2007 02:26:33 -0500 Received: from a-sasl-quonix.pobox.com ([208.72.237.25]:40191 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792AbXLGH0c (ORCPT ); Fri, 7 Dec 2007 02:26:32 -0500 Received: from a-sasl-quonix (localhost [127.0.0.1]) by a-sasl-quonix.pobox.com (Postfix) with ESMTP id 800FA2BC7; Fri, 7 Dec 2007 02:26:20 -0500 (EST) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.pobox.com (Postfix) with ESMTP id 9DBFD2BC5; Fri, 7 Dec 2007 02:26:09 -0500 (EST) In-Reply-To: <1196990840-1168-1-git-send-email-jnareb@gmail.com> (Jakub Narebski's message of "Fri, 7 Dec 2007 02:27:20 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Jakub Narebski writes: > On Fri, 7 Dec 2007, Blake Ramsdell wrote: >> 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. > > Is something like the patch below what you wanted to try? This looks sensible. Will apply.