1 1.5 mrg # $NetBSD: Makefile,v 1.5 2023/09/05 04:16:56 mrg Exp $ 2 1.1 mrg 3 1.1 mrg XCBEXT= xinput 4 1.1 mrg 5 1.5 mrg # XXXGCC12: avoids 6 1.5 mrg # xinput.c:491:19: error: argument 1 value '4294967294' exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=] 7 1.5 mrg # 491 | xcb_out = malloc(xcb_buffer_len); 8 1.5 mrg # it also does not check the return value of this malloc(). 9 1.5 mrg COPTS.xinput.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-alloc-size-larger-than :} 10 1.5 mrg 11 1.1 mrg .include "../xcb.mk" 12