Bug #71575 [NEW]: ISO C does not allow extra ‘;’ outside of a function

From: Date: Fri, 12 Feb 2016 12:18:02 +0000
Subject: Bug #71575 [NEW]: ISO C does not allow extra ‘;’ outside of a function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199174@lists.php.net to get a copy of this message
From: flip101 at gmail dot com Operating system: Ubuntu 15.10 PHP version: 5.6.18 Package: Compile Warning Bug Type: Bug Bug description:ISO C does not allow extra ‘;’ outside of a function 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 bug report at https://bugs.php.net/bug.php?id=71575&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71575&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71575&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71575&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71575&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71575&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71575&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71575&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71575&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71575&r=support Expected behavior: https://bugs.php.net/fix.php?id=71575&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71575&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71575&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71575&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71575&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71575&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71575&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71575&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71575&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71575&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71575&r=mysqlcfg

« previous php.bugs (#199174) next »