Bug #71575 [Opn->Csd]: ISO C does not allow extra ‘;’ outside of a function

From: Date: Thu, 03 Mar 2016 15:53:17 +0000
Subject: Bug #71575 [Opn->Csd]: ISO C does not allow extra ‘;’ outside of a function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199582@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71575&edit=1 ID: 71575 Updated by: nikic@php.net Reported by: flip101 at gmail dot com Summary: ISO C does not allow extra ‘;’ outside of a function -Status: Open +Status: Closed Type: Bug Package: Compile Warning Operating System: Ubuntu 15.10 PHP Version: 5.6.18 Block user comment: N Private report: N New Comment: Automatic comment on behalf of james@asgrim.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=c4b188871e7abb7c6cc20d05ceda4cea082efcd2 Log: Fix bug #71575 removing extra semicolons outside macros Previous Comments: ------------------------------------------------------------------------ [2016-02-12 12:17:59] flip101 at gmail dot com Description: ------------ when including php.h (and all it's dependencies) to compile a file gcc -g3 -c -Wall -Werror -Wextra -pedantic -Wno-unused-parameter -Wno-implicit-function-declaration -std=c11 file.c $(php-config --includes) /usr/local/include/php/main/php_output.h:155:42: error: ISO C does not allow extra ‘;’ outside of a function [-Werror=pedantic] PHPAPI ZEND_EXTERN_MODULE_GLOBALS(output); https://github.com/php/php-src/blob/PHP-5.6.18/main/php_output.h#L155 semicolon already given by macro https://github.com/php/php-src/blob/PHP-5.6.18/Zend/zend_API.h#L150 https://github.com/php/php-src/blob/PHP-5.6.18/Zend/zend_API.h#L159 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71575&edit=1

« previous php.bugs (#199582) next »