diff options
author | Samuel Cabrero <scabrero@samba.org> | 2022-06-01 11:56:19 +0200 |
---|---|---|
committer | Samuel Cabrero <scabrero@samba.org> | 2022-06-14 09:25:31 +0000 |
commit | 89e0c732b1c45f6498ed0f39add77c2a52afddce (patch) | |
tree | d944ce82c637df74004fcbb61b762782405010e6 /lib/replace | |
parent | 3dcdd13a2506597d65af1efda76655206b3b3124 (diff) | |
download | samba-89e0c732b1c45f6498ed0f39add77c2a52afddce.tar.gz |
replace: Check for -Wuse-after-free
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15095
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r-- | lib/replace/wscript | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 827d74f19cb..2808db2e518 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -128,6 +128,9 @@ def configure(conf): if conf.CHECK_CFLAGS('-Wno-strict-overflow'): conf.define('HAVE_WNO_STRICT_OVERFLOW', '1') + if conf.CHECK_CFLAGS('-Wuse-after-free=1'): + conf.define('HAVE_WUSE_AFTER_FREE_1', '1') + # Check for process set name support conf.CHECK_CODE(''' #include <sys/prctl.h> |