mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
ziomon: silence unaligned pointer value warnings
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 <dan@danny.cz>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user