From 53c523ab193fbb24c2855b363a2d692c89264ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Mon, 6 Jun 2022 08:09:52 +0000 Subject: [PATCH] ziomon: silence unaligned pointer value warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build produces a number of warnings like the ones below. The unaligned pointers are expected, thus silence the warnings by disabling the compiler diagnostics. ziomon_dacc.c: In function ‘read_message’: ziomon_dacc.c:189:44: warning: taking address of packed member of ‘struct message’ may result in an unaligned pointer value [-Waddress-of-packed-member] 189 | if ( (rc = read_message_header(fp, &msg->length, &msg->type)) ) | ^~~~~~~~~~~~ or In file included from ziomon_mgr.c:36: blkiomon.h: In function ‘blkiomon_stat_init’: blkiomon.h:70:21: warning: taking address of packed member of ‘struct blkiomon_stat’ may result in an unaligned pointer value [-Waddress-of-packed-member] 70 | minmax_init(&bstat->size_r); | ^~~~~~~~~~~~~~ GitHub-ID: https://github.com/ibm-s390-linux/s390-tools/pull/137 Signed-off-by: Dan Horák Reviewed-by: Benjamin Block Signed-off-by: Jan Höppner --- ziomon/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ziomon/Makefile b/ziomon/Makefile index 61c2399d..214fcff0 100644 --- a/ziomon/Makefile +++ b/ziomon/Makefile @@ -1,8 +1,8 @@ include ../common.mak ALL_CPPFLAGS += -DNDEBUG -ALL_CFLAGS += -Wundef -Wstrict-prototypes -Wno-trigraphs -ALL_CXXFLAGS += -Wundef -Wno-trigraphs +ALL_CFLAGS += -Wundef -Wstrict-prototypes -Wno-trigraphs -Wno-address-of-packed-member +ALL_CXXFLAGS += -Wundef -Wno-trigraphs -Wno-address-of-packed-member TARGETS = ziomon_util ziomon_mgr ziomon_zfcpdd ziorep_utilization ziorep_traffic all: $(TARGETS)