Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45898 invoked by uid 1010); 27 Nov 2007 15:13:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45883 invoked from network); 27 Nov 2007 15:13:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2007 15:13:15 -0000 Authentication-Results: pb1.pair.com header.from=andy@petdance.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=andy@petdance.com; spf=permerror; sender-id=softfail Received-SPF: error (pb1.pair.com: domain petdance.com from 69.17.117.9 cause and error) X-PHP-List-Original-Sender: andy@petdance.com X-Host-Fingerprint: 69.17.117.9 mail7.sea5.speakeasy.net Linux 2.5 (sometimes 2.4) (4) Received: from [69.17.117.9] ([69.17.117.9:52048] helo=mail7.sea5.speakeasy.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/26-09419-9043C474 for ; Tue, 27 Nov 2007 10:13:15 -0500 Received: (qmail 610 invoked from network); 27 Nov 2007 15:13:10 -0000 Received: from rocket.petdance.com (HELO uniqua.petdance.com) ([64.81.227.163]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 27 Nov 2007 15:13:10 -0000 Received: from alester.flr.follett.com (host3130.follett.com [12.47.12.130]) by uniqua.petdance.com (Postfix) with ESMTP id C376F6ED8002; Tue, 27 Nov 2007 09:13:03 -0600 (CST) Cc: "Ilia Alshanetsky" , "Stanislav Malyshev" , internals@lists.php.net Message-ID: <9AFAC4FC-6B0A-4917-8C5F-9DEA4827B3AB@petdance.com> To: "Alexey Zakhlestin" 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:12:41 -0600 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: andy@petdance.com (Andy Lester) On Nov 27, 2007, at 8:34 AM, Alexey Zakhlestin wrote: > On 11/27/07, Ilia Alshanetsky wrote: >> IMHO {0} is sufficiently clear for human consumption. > > {NULL, 0, 0} brings real structure dimensions to the context, which is > good (less need to check "headers"). It also means that you don't get compiler errors any more like you would with {0}. Now, you can know that if there's a warning about the number of initializers that it's something you should pay attention to. The key for long-term maintenance is to clean up the slop so that the compiler doesn't squawk about it at high levels of warnings. Then when you do have real squawk-worthy problems, they don't get lost in the noise of meaningless warnings. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance