From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17897 invoked by alias); 5 Oct 2008 18:28:13 -0000 Received: (qmail 17888 invoked by uid 22791); 5 Oct 2008 18:28:12 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.113.40.141) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 05 Oct 2008 18:27:36 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 898096793; Sun, 5 Oct 2008 11:27:34 -0700 (PDT) Received: from [10.20.92.59] (promb-2s-dhcp59.eng.vmware.com [10.20.92.59]) by mailhost4.vmware.com (Postfix) with ESMTP id 68215C9A3A; Sun, 5 Oct 2008 11:27:34 -0700 (PDT) Message-ID: <48E906B5.8070600@vmware.com> Date: Sun, 05 Oct 2008 18:28:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Michael Snyder , Mark Wielaard , Mark Kettenis , "gdb-patches@sourceware.org" , "teawater@gmail.com" Subject: Re: [RFA record/replay] cast to avoid compiler warning References: <48E7B927.9050207@vmware.com> <09B97D2C4B49DF409E2D018999AC6FE115B42A89C4@PA-EXMBX14.vmware.com> <20081005160411.GA29968@caradoc.them.org> In-Reply-To: <20081005160411.GA29968@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00135.txt.bz2 Daniel Jacobowitz wrote: > On Sun, Oct 05, 2008 at 08:44:38AM -0700, Michael Snyder wrote: >> Yes, but we don't know that gdb will always be built using gnulib. > > Gnulib is a library of portability replacement routines that GDB can > import. We already use it for stdint.h and memchr / memmem. We could > easily add it for further routines. OK. So, would you favor using the "%zd" modifier instead of a cast? I mainly didn't do that because there were no existing instances of it in gdb now, but I was just being conservative...