[compiler-rt] r297515 - Silence a pedantic warning, NFC
Erik Pilkington via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 13:38:59 PST 2017
Author: epilk
Date: Fri Mar 10 15:38:59 2017
New Revision: 297515
URL: http://llvm.org/viewvc/llvm-project?rev=297515&view=rev
Log:
Silence a pedantic warning, NFC
Modified:
compiler-rt/trunk/lib/builtins/os_version_check.c
Modified: compiler-rt/trunk/lib/builtins/os_version_check.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/os_version_check.c?rev=297515&r1=297514&r2=297515&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/os_version_check.c (original)
+++ compiler-rt/trunk/lib/builtins/os_version_check.c Fri Mar 10 15:38:59 2017
@@ -112,4 +112,9 @@ int32_t __isOSVersionAtLeast(int32_t Maj
return Subminor <= GlobalSubminor;
}
+#else
+
+/* Silence an empty translation unit warning. */
+typedef int unused;
+
#endif
More information about the llvm-commits
mailing list