From e79ba06d100fb3d974fabcf27d6bc61173db8973 Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 13 May 2024 21:17:24 +0000 Subject: [PATCH] libc/hdtoa: suppress lint warning about possible accuracy loss on sparc64: hdtoa.c(340): warning: conversion from 'unsigned long' to 'char' may lose accuracy [132] --- lib/libc/gdtoa/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc index f66547e3e8d0..210fd8223afd 100644 --- a/lib/libc/gdtoa/Makefile.inc +++ b/lib/libc/gdtoa/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.13 2023/10/07 12:15:53 rin Exp $ +# $NetBSD: Makefile.inc,v 1.14 2024/05/13 21:17:24 rillig Exp $ # gdtoa sources .PATH: ${.CURDIR}/gdtoa @@ -44,3 +44,5 @@ SRCS+= dmisc.c \ .if ${MACHINE_ARCH} != "vax" SRCS+= strtord.c .endif + +LINTFLAGS.hdtoa.c+= -X 132 # conversion may lose accuracy