[compiler-rt] b55d4a3 - [compiler-rt] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 08:58:46 PDT 2024
Author: Kazu Hirata
Date: 2024-09-19T08:58:40-07:00
New Revision: b55d4a39a932e407192a8038ef542586fd92e786
URL: https://github.com/llvm/llvm-project/commit/b55d4a39a932e407192a8038ef542586fd92e786
DIFF: https://github.com/llvm/llvm-project/commit/b55d4a39a932e407192a8038ef542586fd92e786.diff
LOG: [compiler-rt] Fix a warning
This patch fixes:
compiler-rt/lib/builtins/truncxfbf2.c:16:7: error: ISO C requires a
translation unit to contain at least one declaration
[-Werror,-Wempty-translation-unit]
Added:
Modified:
compiler-rt/lib/builtins/truncxfbf2.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/truncxfbf2.c b/compiler-rt/lib/builtins/truncxfbf2.c
index aa4108c334eebc..5a389abdf0d570 100644
--- a/compiler-rt/lib/builtins/truncxfbf2.c
+++ b/compiler-rt/lib/builtins/truncxfbf2.c
@@ -14,3 +14,6 @@
COMPILER_RT_ABI dst_t __truncxfbf2(long double a) { return __truncXfYf2__(a); }
#endif
+
+// Have at least one declaration to suppress warnings.
+enum Unused { ReallyUnused };
More information about the llvm-commits
mailing list