[compiler-rt] r270969 - [profile] Avoid unused variable warning.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 23:15:14 PDT 2016


Author: silvas
Date: Fri May 27 01:15:13 2016
New Revision: 270969

URL: http://llvm.org/viewvc/llvm-project?rev=270969&view=rev
Log:
[profile] Avoid unused variable warning.

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingPort.h

Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=270969&r1=270968&r2=270969&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Fri May 27 01:15:13 2016
@@ -38,7 +38,7 @@
 #ifdef _MSC_VER
 #define COMPILER_RT_GETHOSTNAME(Name, Len) gethostname(Name, Len)
 #elif defined(__ORBIS__)
-#define COMPILER_RT_GETHOSTNAME(Name, Len) (-1)
+#define COMPILER_RT_GETHOSTNAME(Name, Len) ((void)(Name), (void)(Len), (-1))
 #else
 #define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len)
 #define COMPILER_RT_HAS_UNAME 1




More information about the llvm-commits mailing list