FreeBSD Bugzilla – Attachment 233551 Details for
Bug 263616
emulators/rtc: Fix build with 14-current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix compile errors with clang13
patch-files_rtc.c (text/plain), 668 bytes, created by
Jamie Landeg-Jones
on 2022-04-27 20:15:57 UTC
(
hide
)
Description:
patch to fix compile errors with clang13
Filename:
MIME Type:
Creator:
Jamie Landeg-Jones
Created:
2022-04-27 20:15:57 UTC
Size:
668 bytes
patch
obsolete
>--- files/rtc.c.orig 2021-09-11 15:57:58.000000000 +0100 >+++ files/rtc.c 2022-04-27 20:10:32.493974000 +0100 >@@ -109,10 +109,16 @@ > rtc_attach(struct cdev *dev) > { > struct rtc_softc *sc; >+/* Clang 13+ realises that "unit" below isn't actually used if we */ >+/* aren't running with DEBUG set. The warning is treated as a */ >+/* fatal error by FreeBSD's kmod build system, so wrap its usage */ >+/* within DEBUG pre-processor conditionals. - Jamie Landeg-Jones */ >+#if DEBUG > int unit; > > unit = dev2unit(dev); > DLog(Lenter, "%d %p", unit, dev); >+#endif /* DEBUG */ > if (dev->si_drv1) { > DLog(Lexit, "old %p, %p", dev, dev->si_drv1); > return dev->si_drv1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263616
: 233551