Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8202 invoked from network); 22 Jul 2013 08:14:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2013 08:14:23 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.91 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.91 smtp91.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.91] ([108.166.43.91:51618] helo=smtp91.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/33-26448-ED9ECE15 for ; Mon, 22 Jul 2013 04:14:23 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp4.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 2D26A140087 for ; Mon, 22 Jul 2013 04:14:20 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp4.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id C72A6140131 for ; Mon, 22 Jul 2013 04:14:19 -0400 (EDT) Message-ID: <51ECE9DA.8040705@sugarcrm.com> Date: Mon, 22 Jul 2013 01:14:18 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: warning in php_spl.c From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! Building PHP 5.5 with newer compiler on Mac, I'm getting this warning: /Users/smalyshev/php-5.5/ext/spl/php_spl.c:803:35: warning: format specifies type 'unsigned int' but the argument has type 'intptr_t' (aka 'long') [-Wformat] spprintf(&hex, 32, "%016x%016x", hash_handle, hash_handlers); ~~~~~ ^~~~~~~~~~~ %016lx /Users/smalyshev/php-5.5/ext/spl/php_spl.c:803:48: warning: format specifies type 'unsigned int' but the argument has type 'intptr_t' (aka 'long') [-Wformat] spprintf(&hex, 32, "%016x%016x", hash_handle, hash_handlers); ~~~~~ ^~~~~~~~~~~~~ %016lx Which suggests intptr_t there has wrong size. Looks like on 64-bit intptr_t would be too long and hash_handlers may not have chance to be in the hash. Anybody knows if there's a reason why this code is there? BTW, llvm compiler produces tons of warnings on PHP source, I'm planning to get to them, probably next weekend. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227