Skip to content

Commit 7d11972

Browse files
committed
Update GCC flags to suppress incompatible pointer type warnings
1 parent a587180 commit 7d11972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,9 +1315,9 @@ public function getGccFlags(bool $development = false): string
13151315
if (false === $development) {
13161316
$gccVersion = $this->getGccVersion();
13171317
if (version_compare($gccVersion, '4.6.0', '>=')) {
1318-
$gccFlags = '-O2 -fvisibility=hidden -Wparentheses -flto -DZEPHIR_RELEASE=1';
1318+
$gccFlags = '-O2 -Wno-incompatible-pointer-types -fvisibility=hidden -Wparentheses -flto -DZEPHIR_RELEASE=1';
13191319
} else {
1320-
$gccFlags = '-O2 -fvisibility=hidden -Wparentheses -DZEPHIR_RELEASE=1';
1320+
$gccFlags = '-O2 -Wno-incompatible-pointer-types -fvisibility=hidden -Wparentheses -DZEPHIR_RELEASE=1';
13211321
}
13221322
} else {
13231323
$gccFlags = '-O0 -g3';

0 commit comments

Comments
 (0)