OSDN Git Service

[builtins] Add void prototype to unprototyped functions
authorAyke van Laethem <aykevanlaethem@gmail.com>
Wed, 22 Apr 2020 14:41:23 +0000 (16:41 +0200)
committerAyke van Laethem <aykevanlaethem@gmail.com>
Wed, 22 Apr 2020 19:43:44 +0000 (21:43 +0200)
This patch replaces () prototypes with (void) prototypes.

Differential Revision: https://reviews.llvm.org/D78641

compiler-rt/test/builtins/Unit/fp_test.h

index 49f7197..2ea648e 100644 (file)
@@ -211,23 +211,23 @@ static inline char *expectedStr(enum EXPECTED_RESULT expected)
     return "";
 }
 
-static inline uint16_t makeQNaN16()
+static inline uint16_t makeQNaN16(void)
 {
     return fromRep16(0x7e00U);
 }
 
-static inline float makeQNaN32()
+static inline float makeQNaN32(void)
 {
     return fromRep32(0x7fc00000U);
 }
 
-static inline double makeQNaN64()
+static inline double makeQNaN64(void)
 {
     return fromRep64(0x7ff8000000000000UL);
 }
 
 #if __LDBL_MANT_DIG__ == 113
-static inline long double makeQNaN128()
+static inline long double makeQNaN128(void)
 {
     return fromRep128(0x7fff800000000000UL, 0x0UL);
 }
@@ -255,23 +255,23 @@ static inline long double makeNaN128(uint64_t rand)
 }
 #endif
 
-static inline uint16_t makeInf16()
+static inline uint16_t makeInf16(void)
 {
     return fromRep16(0x7c00U);
 }
 
-static inline float makeInf32()
+static inline float makeInf32(void)
 {
     return fromRep32(0x7f800000U);
 }
 
-static inline double makeInf64()
+static inline double makeInf64(void)
 {
     return fromRep64(0x7ff0000000000000UL);
 }
 
 #if __LDBL_MANT_DIG__ == 113
-static inline long double makeInf128()
+static inline long double makeInf128(void)
 {
     return fromRep128(0x7fff000000000000UL, 0x0UL);
 }