From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15704 invoked by alias); 9 Feb 2002 17:27:39 -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 15597 invoked from network); 9 Feb 2002 17:27:37 -0000 Received: from unknown (HELO elgar.kettenis.dyndns.org) (213.93.115.180) by sources.redhat.com with SMTP; 9 Feb 2002 17:27:37 -0000 Received: (qmail 38607 invoked by uid 1001); 9 Feb 2002 17:27:36 -0000 Date: Sat, 09 Feb 2002 09:27:00 -0000 Message-ID: <20020209172736.38606.qmail@elgar.kettenis.dyndns.org> From: kettenis@chello.nl To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix PR gdb/290 Reply-to: kettenis@chello.nl X-SW-Source: 2002-02/txt/msg00275.txt.bz2 Checked in as obvious. Wonder why GCC didn't warn about this. Should we add some more -Wxxx flags? Mark Index: ChangeLog from Mark Kettenis * doublest.c (store_typed_floating): Don't try to return a value. Fixes PR gdb/290. Index: doublest.c =================================================================== RCS file: /cvs/src/src/gdb/doublest.c,v retrieving revision 1.8 diff -u -p -r1.8 doublest.c --- doublest.c 2002/01/22 19:57:40 1.8 +++ doublest.c 2002/02/09 17:24:44 @@ -732,9 +732,9 @@ store_typed_floating (void *addr, const memset (addr, 0, TYPE_LENGTH (type)); if (TYPE_FLOATFORMAT (type) == NULL) - return store_floating (addr, TYPE_LENGTH (type), val); - - floatformat_from_doublest (TYPE_FLOATFORMAT (type), &val, addr); + store_floating (addr, TYPE_LENGTH (type), val); + else + floatformat_from_doublest (TYPE_FLOATFORMAT (type), &val, addr); } /* Convert a floating-point number of type FROM_TYPE from a