NetBSD Problem Report #56175
From www@netbsd.org Sat May 15 08:04:39 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4A5821A9289
for <gnats-bugs@gnats.NetBSD.org>; Sat, 15 May 2021 08:04:39 +0000 (UTC)
Message-Id: <20210515080438.17E841A928A@mollari.NetBSD.org>
Date: Sat, 15 May 2021 08:04:38 +0000 (UTC)
From: jjflxyz@gmail.com
Reply-To: jjflxyz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: xf86-video-nv fails to build with clang
X-Send-Pr-Version: www-1.0
>Number: 56175
>Category: xsrc
>Synopsis: xf86-video-nv fails to build with clang
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: xsrc-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 15 08:05:00 +0000 2021
>Originator: Miko
>Release: trunk
>Organization:
>Environment:
Linux zenorus 5.12.4-1-uwu #1 SMP PREEMPT Fri, 14 May 2021 12:29:03 +0000 x86_64 GNU/Linux
>Description:
xf86-video-nv fails to build with clang due to nv_setup.c passing a Uchar to a char.
>How-To-Repeat:
Build a release using build.sh with -x and with llvm enabled.
>Fix:
diff --git a/external/mit/xf86-video-nv/dist/src/nv_setup.c b/external/mit/xf86-video-nv/dist/src/nv_setup.c
index 1a116508d..0bd88ca37 100644
--- a/external/mit/xf86-video-nv/dist/src/nv_setup.c
+++ b/external/mit/xf86-video-nv/dist/src/nv_setup.c
@@ -255,7 +255,7 @@ NVProbeDDC (ScrnInfoPtr pScrn, int bus)
if (ioctl(xf86Info.consoleFd, WSDISPLAYIO_GET_EDID, &ei) != -1) {
xf86Msg(X_INFO, "got %d bytes worth of EDID from wsdisplay\n",
ei.data_size);
- tmp = xf86InterpretEEDID(pScrn->scrnIndex, buffer);
+ tmp = xf86InterpretEEDID(pScrn->scrnIndex, (Uchar *)buffer);
tmp->flags |= MONITOR_EDID_COMPLETE_RAWDATA;
MonInfo = tmp;
}
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.