1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Samuel Cabrero 2022-06-01 11:56:19 +02:00
parent 3dcdd13a25
commit 89e0c732b1

View 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>