Module Name: src Committed By: mrg Date: Tue Sep 5 04:16:56 UTC 2023
Modified Files: src/external/mit/xorg/lib/libxcb/xinput: Makefile Log Message: turn off -Walloc-size-larger-than for xinput.c on 32-bit platforms, an expression claims the input can exceed 2G, more than malloc() can take. i'm pretty sure that the maximum is actually quite a lot less (seems to be max 255*12 plus <100.) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libxcb/xinput/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/mit/xorg/lib/libxcb/xinput/Makefile diff -u src/external/mit/xorg/lib/libxcb/xinput/Makefile:1.4 src/external/mit/xorg/lib/libxcb/xinput/Makefile:1.5 --- src/external/mit/xorg/lib/libxcb/xinput/Makefile:1.4 Sun Mar 5 09:27:53 2017 +++ src/external/mit/xorg/lib/libxcb/xinput/Makefile Tue Sep 5 04:16:56 2023 @@ -1,5 +1,11 @@ -# $NetBSD: Makefile,v 1.4 2017/03/05 09:27:53 mrg Exp $ +# $NetBSD: Makefile,v 1.5 2023/09/05 04:16:56 mrg Exp $ XCBEXT= xinput +# XXXGCC12: avoids +# xinput.c:491:19: error: argument 1 value '4294967294' exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=] +# 491 | xcb_out = malloc(xcb_buffer_len); +# it also does not check the return value of this malloc(). +COPTS.xinput.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-alloc-size-larger-than :} + .include "../xcb.mk"