Skip to content

Commit c10ea32

Browse files
committed
Revert "Suppress duplicated-branches compiler warning in pack implementation"
This reverts commit 34585aa.
1 parent 577bc61 commit c10ea32

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/standard/pack.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,15 +1101,11 @@ PHP_FUNCTION(unpack)
11011101

11021102
v = php_unpack(&input[inputpos], 8, issigned, map);
11031103

1104-
/* GCC seems to think does are identical for some reason */
1105-
#pragma GCC diagnostic push
1106-
#pragma GCC diagnostic ignored "-Wduplicated-branches"
11071104
if (type == 'q') {
11081105
v = (zend_long) v;
11091106
} else {
11101107
v = (zend_ulong) v;
11111108
}
1112-
#pragma GCC diagnostic pop
11131109

11141110
add_assoc_long(return_value, n, v);
11151111
break;

0 commit comments

Comments
 (0)