From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28982 invoked by alias); 18 Apr 2012 01:06:19 -0000 Received: (qmail 28972 invoked by uid 22791); 18 Apr 2012 01:06:18 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Apr 2012 01:06:06 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B2CFE1C66E2; Tue, 17 Apr 2012 21:06:05 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4SBt5RNkyecQ; Tue, 17 Apr 2012 21:06:05 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5C5A51C663A; Tue, 17 Apr 2012 21:06:05 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 5889F145616; Tue, 17 Apr 2012 18:05:57 -0700 (PDT) Date: Wed, 18 Apr 2012 01:58:00 -0000 From: Joel Brobecker To: Doug Evans Cc: Pedro Alves , gdb-patches Subject: Re: [RFA] Ensure result of make_cleanup is never NULL. Message-ID: <20120418010557.GW2852@adacore.com> References: <20120416144011.GH2852@adacore.com> <4F8C3350.1030601@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2012-04/txt/msg00531.txt.bz2 > btw, I thought about making cleanup_sentinel const here, for a bit of > extra robustness. Sounds like a good idea. And also, I was wondering if it made sense to initialize the sentinel struct to `{ 0 }', even if we do not actually access the contents of that specific struct instance? -- Joel