Module Name:    src
Committed By:   rillig
Date:           Mon Apr 10 19:23:02 UTC 2023

Modified Files:
        src/lib/libm: Makefile

Log Message:
libm: suppress lint warning about '>>' on signed integer

GCC has implementation-defined behavior for that case.


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.218 src/lib/libm/Makefile:1.219
--- src/lib/libm/Makefile:1.218	Sat Aug 27 09:56:21 2022
+++ src/lib/libm/Makefile	Mon Apr 10 19:23:02 2023
@@ -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 @@ USE_SHLIBDIR=	yes
 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

Reply via email to