Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xf86-video-vboxvideo/dist/src Don't play smar...



details:   https://anonhg.NetBSD.org/xsrc/rev/bcd1549e1002
branches:  trunk
changeset: 10105:bcd1549e1002
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 31 20:46:43 2019 +0000

description:
Don't play smart with the compiler, it complains about unused values.

diffstat:

 external/mit/xf86-video-vboxvideo/dist/src/VBoxVideoIPRT.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 473aaf6d1d17 -r bcd1549e1002 external/mit/xf86-video-vboxvideo/dist/src/VBoxVideoIPRT.h
--- a/external/mit/xf86-video-vboxvideo/dist/src/VBoxVideoIPRT.h        Thu Jan 31 20:41:37 2019 +0000
+++ b/external/mit/xf86-video-vboxvideo/dist/src/VBoxVideoIPRT.h        Thu Jan 31 20:46:43 2019 +0000
@@ -1,4 +1,4 @@
-/* $Id: VBoxVideoIPRT.h,v 1.1.1.1 2019/01/09 23:50:31 mrg Exp $ */
+/* $Id: VBoxVideoIPRT.h,v 1.2 2019/01/31 20:46:43 christos Exp $ */
 /*
  * Copyright (C) 2017 Oracle Corporation
  *
@@ -116,7 +116,11 @@
 #define RT_CLAMP(Value, Min, Max)               ( (Value) > (Max) ? (Max) : (Value) < (Min) ? (Min) : (Value) )
 #define RT_ELEMENTS(aArray)                     ( sizeof(aArray) / sizeof((aArray)[0]) )
 #define RTIOPORT unsigned short
+#ifdef __clang__
+#define RT_NOREF(...)       ((void)0)
+#else
 #define RT_NOREF(...)       (void)(__VA_ARGS__)
+#endif
 #define RT_OFFSETOF(type, member) offsetof(type, member)
 #define RT_ZERO(Obj)        RT_BZERO(&(Obj), sizeof(Obj))
 #define VALID_PTR(ptr)    (   (uintptr_t)(ptr) + 0x1000U >= 0x2000U )



Home | Main Index | Thread Index | Old Index