From: Andreas Schneider Date: Tue, 17 May 2022 10:43:51 +0000 (+0200) Subject: lib:util: Do not error for array-bounds warning X-Git-Tag: talloc-2.3.4~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e31d9d069db9fd36bf2e668047921a5645351d;p=thirdparty%2Fsamba.git lib:util: Do not error for array-bounds warning This just prints a warning for: ms_fnmatch.c:95:51: error: array subscript 0 is outside array bounds of ‘struct max_n[0]’ [-Werror=array-bounds] 95 | if (max_n != NULL && max_n->predot && | Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy --- diff --git a/lib/util/wscript_build b/lib/util/wscript_build index 2f31e8fa5b1..08a551038c8 100644 --- a/lib/util/wscript_build +++ b/lib/util/wscript_build @@ -210,6 +210,7 @@ else: tfork.h ''', header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ], + cflags='-Wno-error=array-bounds', local_include=False, vnum='0.0.1', pc_files='samba-util.pc'