From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7488 invoked by alias); 30 Oct 2016 04:25:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 7461 invoked by uid 89); 30 Oct 2016 04:25:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=developing, equally X-HELO: zimbra.cs.ucla.edu Subject: Re: [PATCH] Fix -Os related -Werror failures. To: Jeff Law , Arnd Bergmann , libc-alpha@sourceware.org References: <6eac682f-26fa-6a47-9497-357206266ba1@redhat.com> <6be7dce5-bfa7-32c7-5bac-6c3b79776683@redhat.com> <9d58289e-07fb-4bae-d7d3-8055a6c96a3a@redhat.com> <20863164.XNWC5rYB1g@wuerfel> <7820c555-1463-6c3a-17e5-650a44fabd19@cs.ucla.edu> <6a3047c8-8d7c-f89a-222b-5fea7c743022@redhat.com> Cc: Florian Weimer , Carlos O'Donell From: Paul Eggert Message-ID: <52615d25-6e93-a5e8-647b-a6a28f2686d0@cs.ucla.edu> Date: Sun, 30 Oct 2016 04:25:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <6a3047c8-8d7c-f89a-222b-5fea7c743022@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-10/txt/msg00592.txt.bz2 Jeff Law wrote: > I would caution against blindly using 0 as an initializer. Yes, in Emacs we use 0 only when the value does not matter so all values are equally "safe". It's merely a convenience to use 0, as 0 is valid for pointers as well as for numbers so we can use the same macro for both. We're just trying to pacify GCC when warnings are enabled when developing; typically in production warnings are disabled and there is no initializer at all.