From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17589 invoked by alias); 25 Aug 2002 13:33:54 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17580 invoked from network); 25 Aug 2002 13:33:49 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 25 Aug 2002 13:33:49 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 3BFC63E10; Sun, 25 Aug 2002 09:33:30 -0400 (EDT) Message-ID: <3D68DCA9.2090801@ges.redhat.com> Date: Sun, 25 Aug 2002 06:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Kettenis Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Fix compiler warnings References: <200208240041.g7O0fTLP032203@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00820.txt.bz2 > On the alpha LONGEST is symply a long. Therefore, on alpha systems > that support long long, this will lead to a format string warning. > The attached patch fixes this. > > Mark > > Index: ChangeLog > from Mark Kettenis > > * valprint.c (print_longest) [CC_HAS_LONG_LONG && > PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned > long long) to prevent compiler warning on 64-bit systems. Mumble something about wanting to eliminate #ifdef PRINTF_HAS_LONG_LONG :-) Andrew