From d9e5691843a932a6c0633fa6f07bc084dcfd4a93 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 15 Apr 2020 15:32:58 +0200 Subject: [PATCH] [builtins] Fix unprototypes function declaration The following declarations were missing a prototype: FE_ROUND_MODE __fe_getround(); int __fe_raise_inexact(); Discovered while fixing a bug in Clang related to unprototyped function calls (see the previous commit). Differential Revision: https://reviews.llvm.org/D78205 --- compiler-rt/lib/builtins/fp_mode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/builtins/fp_mode.h b/compiler-rt/lib/builtins/fp_mode.h index 51bec04..4ba682c 100644 --- a/compiler-rt/lib/builtins/fp_mode.h +++ b/compiler-rt/lib/builtins/fp_mode.h @@ -23,7 +23,7 @@ typedef enum { FE_TOWARDZERO } FE_ROUND_MODE; -FE_ROUND_MODE __fe_getround(); -int __fe_raise_inexact(); +FE_ROUND_MODE __fe_getround(void); +int __fe_raise_inexact(void); #endif // FP_MODE_H -- 2.7.4