Disable -Werror for array-bounds

Otherwise the library won't build with gcc-11.2

In file included from misc/mbuffer.c:21:
misc/mbuffer.c: In function ‘alloc_mbuffer’:
../include/mISDN/mbuffer.h:160:14: error: array subscript ‘struct mbuffer[0]’ is partly outside array bounds of ‘struct mqueue[1]’ [-Werror=array-bounds]
  160 |         next = prev->next;
      |         ~~~~~^~~~~~~~~~~~
This commit is contained in:
Harald Welte 2022-03-13 15:17:49 +01:00
parent b718bf65e4
commit 3bce40c22a
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,6 @@ lib_LTLIBRARIES = libmisdn.la
libmisdn_la_SOURCES = $(MISC_SRC) $(LAYER3_SRC) $(INCLUDE_SRC) $(ASN1_SRC) $(SUPPSERV_SRC)
libmisdn_la_LDFLAGS = -version-info 1:0:0
AM_CPPFLAGS = -I$(top_srcdir)/include -Wall -Werror -I$(srcdir)/include $(_MEMLEAKDEBUG)
AM_CPPFLAGS = -I$(top_srcdir)/include -Wall -Werror -Wno-error=array-bounds -I$(srcdir)/include $(_MEMLEAKDEBUG)
CLEANFILES = *~ */*~