Changed compile flags (and script), for better sanitization.
This commit is contained in:
parent
112034e44e
commit
5b040729f9
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue