X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=fCPeWiJuIx3R/DN35Lcy3G1QzittWfszgxbXkZqUWTI
	D5xE5U59nSNNSLRWHfNINrgHa/cUoMCR1Z3T7aBcQZu5kOM79ufThQnSV4oKNyx7
	VVZqqHobHAaRZ36HXYSdB3udytIAsQjgKz96YLDKLe/TweGDmNxZ3yIEuUTu7Mp8
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=0u5TJNg4bAAa7SB5GN1jZkYNwU4=; b=S/Xczk5TPlA5u2w15
	/NRxcbOfYXI5JbsrGkHEW93IIXFbieDQzJLO/zE5mxXdXcp5oP4JpjnKMMiWPGLr
	gEFyY4sH8luOlp75ZmSBGQfebPmUBSH4HUpXD0vRjh32vWmocDpWxl07vpl/eptd
	GuvYmYz6jCF0eifn0XYagQLP00=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1
Message-ID: <51783547.9010002@t-online.de>
Date: Wed, 24 Apr 2013 21:40:55 +0200
From: Christian Franke <Christian.Franke@t-online.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 SeaMonkey/2.16.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Porting to 64 bit Cygwin (was Re: Difference in 32/64-bit curl.)
References: <51766C22.10702@bahnhof.se> <51770372.4070408@t-online.de> <20130424125930.GQ26397@calimero.vinschen.de> <20130424134749.GR26397@calimero.vinschen.de> <517803D9.3060504@t-online.de> <20130424174401.GY26397@calimero.vinschen.de>
In-Reply-To: <20130424174401.GY26397@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Corinna Vinschen wrote:
>> - DON'T forget to add casts if such Win32 API types are used with
>> printf(). This:
>>
>>    printf("Win32 Error=%lu\n", GetLastError());
>>
>> worked for all i686 and Windows x86_64, but fails now on Cygwin x86_64.
> I skipped that because the FAQ entry is not exactly what I wrote in my
> mail.  Do you still think this is necessary?

No - these cases would be reported by compiler if -W[error=]format is 
enabled.

Yes - the knowledge that there is no portable way to pass DWORD, LONG, 
... to printf() without a cast might help to write correct code without 
test builds on all platforms :-)

Christian


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

