From 084546f7d01b0eec8dafae9bc50edc778c3886ca Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 16 Aug 2021 13:02:15 -0400 Subject: [PATCH] LU-14093 tests: silence gcc10 error for badarea_io MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With gcc10 badarea_io will fail to build with the following error. badarea_io.c: In function ‘main’: badarea_io.c:59:7: error: ‘write’ reading 2097152 bytes from a region of size 4 [-Werror=stringop-overflow=] 59 | rc = write(fd, &fd, 2UL*1024*1024); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Talking to Oleg see stated this is the done this way on purpose. So instead of 'fixing' the issue in this case we silence the gcc warning. Test-Parameters: trivial Test-Parameters: env=ONLY=133f,133g testlist=sanity Change-Id: Iee79c7988cc209fd099c23c38a8bd7df96015b05 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/44670 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- lustre/tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/tests/Makefile.am b/lustre/tests/Makefile.am index 45d51ce..03baaa5 100644 --- a/lustre/tests/Makefile.am +++ b/lustre/tests/Makefile.am @@ -111,6 +111,7 @@ nobase_test_DATA = $(nobase_noinst_DATA) LIBLUSTREAPI = $(top_builddir)/lustre/utils/liblustreapi.la +badarea_io_CFLAGS=-Wno-stringop-overflow mmap_sanity_LDADD = $(LIBLUSTREAPI) multiop_LDADD = $(LIBLUSTREAPI) $(PTHREAD_LIBS) llapi_layout_test_LDADD = $(LIBLUSTREAPI) -- 1.8.3.1