1
0
Fork 0

Changed compile flags (and script), for better sanitization.

This commit is contained in:
wael 2021-09-10 19:18:31 +03:00
parent 112034e44e
commit 5b040729f9
2 changed files with 3 additions and 2 deletions

View File

@ -1,2 +1,2 @@
#!/bin/zsh
gcc -I/home/wael/Development/C_libs -g -fsanitize=address -fsanitize=undefined -Wall $1
gcc -I/home/wael/Development/C_libs -g -fsanitize=address -fsanitize=undefined -fsanitize=leak -Wall $1

View File

@ -1,4 +1,5 @@
Debug: -g
Memory leaks: -fsanitize=address
Memory leaks: -fsanitize=address -fsanitize=leak
For undefined vars: -fsanitize=undefined
Warnings (all of them): -Wall
Static analysis: -fanalyze -Wanalyzer-too-complex (Don't use with sanitization)