[builtins] Fix unprototypes function declaration
authorAyke van Laethem <aykevanlaethem@gmail.com>
Wed, 15 Apr 2020 13:32:58 +0000 (15:32 +0200)
committerAyke van Laethem <aykevanlaethem@gmail.com>
Wed, 15 Apr 2020 21:44:51 +0000 (23:44 +0200)
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

index 51bec04..4ba682c 100644 (file)
@@ -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