]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
replace: Check for -Wuse-after-free
authorSamuel Cabrero <scabrero@samba.org>
Wed, 1 Jun 2022 09:56:19 +0000 (11:56 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 14 Jun 2022 09:25:31 +0000 (09:25 +0000)
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>
lib/replace/wscript

index 827d74f19cb12d2b02ae475ff66ab74aefc8443c..2808db2e5186660e2c309a7460302ec1b853ef62 100644 (file)
@@ -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>