From 3dc30415a7c5dae0006fe0c51cdb6c83e73bc907 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 17 May 2022 12:43:51 +0200 Subject: [PATCH] lib:util: Do not error for array-bounds warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 && | BUG: https://bugzilla.samba.org/show_bug.cgi?id=15073 Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy (cherry picked from commit 00e31d9d069db9fd36bf2e668047921a5645351d) --- lib/util/wscript_build | 1 + 1 file changed, 1 insertion(+) 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' -- 2.36.1