Skip to content

Commit b55d4a3

Browse files
[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]
1 parent e03f427 commit b55d4a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/builtins/truncxfbf2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
COMPILER_RT_ABI dst_t __truncxfbf2(long double a) { return __truncXfYf2__(a); }
1515

1616
#endif
17+
18+
// Have at least one declaration to suppress warnings.
19+
enum Unused { ReallyUnused };

0 commit comments

Comments
 (0)