]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:util: Do not error for array-bounds warning
authorAndreas Schneider <asn@samba.org>
Tue, 17 May 2022 10:43:51 +0000 (12:43 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 18 May 2022 06:58:35 +0000 (06:58 +0000)
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 <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/util/wscript_build

index 2f31e8fa5b1a300e862e0a11ae2e88d0193bad7b..08a551038c8d29679570d9a5d46d6cf455bda542 100644 (file)
@@ -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'