Mon Apr 10 19:23:02 2023 UTC ()
libm: suppress lint warning about '>>' on signed integer

GCC has implementation-defined behavior for that case.


(rillig)
diff -r1.218 -r1.219 src/lib/libm/Makefile

cvs diff -r1.218 -r1.219 src/lib/libm/Makefile (expand / switch to context diff)
--- src/lib/libm/Makefile 2022/08/27 09:56:21 1.218
+++ src/lib/libm/Makefile 2023/04/10 19:23:02 1.219
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.218 2022/08/27 09:56:21 christos Exp $
+#  $NetBSD: Makefile,v 1.219 2023/04/10 19:23:02 rillig Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -53,8 +53,8 @@
 LIBC_MACHINE_ARCH?=	${MACHINE_ARCH}
 LIBC_MACHINE_CPU?=	${MACHINE_CPU}
 
-# compiler_rt uses typeof() and __extension__
-LINTFLAGS += -g
+LINTFLAGS+=	-g		# compiler_rt uses typeof() and __extension__
+LINTFLAGS+=	-X 117		# GCC sign-extends '>>' on signed int
 
 .if (${LIBC_MACHINE_CPU} == "aarch64")
 .PATH: ${.CURDIR}/arch/aarch64