Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21959 invoked by uid 1010); 27 Nov 2007 14:27:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21920 invoked from network); 27 Nov 2007 14:27:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2007 14:27:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 64.233.166.179 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 64.233.166.179 py-out-1112.google.com Received: from [64.233.166.179] ([64.233.166.179:54590] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/4C-24478-2F22C474 for ; Tue, 27 Nov 2007 09:00:19 -0500 Received: by py-out-1112.google.com with SMTP id d32so4055311pye for ; Tue, 27 Nov 2007 06:00:09 -0800 (PST) Received: by 10.35.49.4 with SMTP id b4mr4744339pyk.1196172009218; Tue, 27 Nov 2007 06:00:09 -0800 (PST) Received: from ?192.168.1.131? ( [76.65.228.201]) by mx.google.com with ESMTPS id v56sm2078572pyh.2007.11.27.06.00.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Nov 2007 06:00:08 -0800 (PST) Cc: Stanislav Malyshev , internals@lists.php.net Message-ID: To: Andy Lester In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Tue, 27 Nov 2007 09:00:05 -0500 References: <20071127074757.GA25945@petdance.com> <474BDAF8.6020308@zend.com> X-Mailer: Apple Mail (2.915) Subject: Re: [PHP-DEV] [PATCH] Clean up struct initalizations From: ilia@prohost.org (Ilia Alshanetsky) IMHO {0} is sufficiently clear for human consumption. On 27-Nov-07, at 8:49 AM, Andy Lester wrote: > > On Nov 27, 2007, at 2:53 AM, Stanislav Malyshev wrote: > >>> I've been working on making PHP build under more stringent error >>> checking, specifically -Wextra under GCC. This patch cleans up >>> dozens >>> of struct initializations that are valid C, but could hide future >>> problems. >> >> Doesn't C standard mandate filling up uninitialized fields with 0? > > > Yes. My patch is for human benefit, not the compiler's. > > -- > Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Ilia Alshanetsky