From: Ayke van Laethem Date: Wed, 15 Apr 2020 13:32:58 +0000 (+0200) Subject: [builtins] Fix unprototypes function declaration X-Git-Tag: llvmorg-12-init~8897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9e5691843a932a6c0633fa6f07bc084dcfd4a93;p=platform%2Fupstream%2Fllvm.git [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 --- 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