Skip to content

Commit b80d508

Browse files
committed
Zend: Add -Wshadow warning
1 parent b7fd773 commit b80d508

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/Zend.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ AX_CHECK_COMPILE_FLAG([-Wformat-truncation],
206206
AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes],
207207
[CFLAGS="-Wstrict-prototypes $CFLAGS"],,
208208
[-Werror])
209+
AX_CHECK_COMPILE_FLAG([-Wshadow],
210+
[CFLAGS="-Wshadow $CFLAGS"],,
211+
[-Werror])
209212
AX_CHECK_COMPILE_FLAG([-fno-common],
210213
[CFLAGS="-fno-common $CFLAGS"],,
211214
[-Werror])

0 commit comments

Comments
 (0)