Skip to content

Commit 9197405

Browse files
committed
Enable more compiler warnings
1 parent cd07129 commit 9197405

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/address-sanitizer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
name: Address Sanitizer
1010
runs-on: ubuntu-latest
1111
env:
12+
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2
1213
CC: clang
13-
CFLAGS: -fsanitize=address
14+
CFLAGS: -fsanitize=address -Wall -Wextra -Wpedantic -Wformat=2 -Walloca -Wvla -Wimplicit-fallthrough -Wcast-qual -Wconversion -Wshadow -Wundef -Wstrict-prototypes -Wswitch-enum -fstack-protector -D_FORTIFY_SOURCE=2 -Werror
1415
LDFLAGS: -fsanitize=address
1516
steps:
1617
- name: Checkout

0 commit comments

Comments
 (0)