Files
s390-tools/mon_tools/Makefile
Jan Höppner 0c5b9f5d11 mon_tools: Silence address-of-packed-member compile warning
The proc_sum_t struct is defined with the packed attribute and
produces the following compile warning:

mon_procd.c: In function ‘read_cpu’:
mon_procd.c:351:27: warning: taking address of packed member of ‘struct proc_sum_t’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  351 |         cal_cpu(&cpudata, &proc_sum.cpu);
      |                           ^~~~~~~~~~~~~

Silence the warning with -Wno-address-of-packed-member compile flag
since the struct is required to be as is.

Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
2022-12-07 16:50:09 +01:00

25 lines
571 B
Makefile

include ../common.mak
ALL_CFLAGS += -Wno-address-of-packed-member
all: mon_fsstatd mon_procd
mon_fsstatd: mon_fsstatd.o
mon_procd: mon_procd.o
install: all
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 mon_fsstatd \
$(DESTDIR)$(USRSBINDIR)
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 mon_fsstatd.8 \
$(DESTDIR)$(MANDIR)/man8
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 mon_procd \
$(DESTDIR)$(USRSBINDIR)
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 mon_procd.8 \
$(DESTDIR)$(MANDIR)/man8
clean:
rm -f *.o *~ mon_fsstatd mon_procd core
.PHONY: all install clean