NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xsrc/56175: xf86-video-nv fails to build with clang
>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;
}
Home |
Main Index |
Thread Index |
Old Index