Skip to content

Commit a3645a1

Browse files
authored
Merge pull request #820 from k0kubun/unused-simd-h
Suppress -Wunused-function
2 parents 12d9221 + 94ed471 commit a3645a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/json/ext/simd/simd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static inline int trailing_zeros(int input) {
5959
#include <arm_neon.h>
6060

6161
#define FIND_SIMD_IMPLEMENTATION_DEFINED 1
62-
static SIMD_Implementation find_simd_implementation(void) {
62+
static inline SIMD_Implementation find_simd_implementation(void) {
6363
return SIMD_NEON;
6464
}
6565

@@ -161,7 +161,7 @@ static inline TARGET_SSE2 FORCE_INLINE int string_scan_simd_sse2(const char **pt
161161
#include <cpuid.h>
162162
#endif /* HAVE_CPUID_H */
163163

164-
static SIMD_Implementation find_simd_implementation(void) {
164+
static inline SIMD_Implementation find_simd_implementation(void) {
165165

166166
#if defined(__GNUC__ ) || defined(__clang__)
167167
#ifdef __GNUC__
@@ -183,7 +183,7 @@ static SIMD_Implementation find_simd_implementation(void) {
183183
#endif /* JSON_ENABLE_SIMD */
184184

185185
#ifndef FIND_SIMD_IMPLEMENTATION_DEFINED
186-
static SIMD_Implementation find_simd_implementation(void) {
186+
static inline SIMD_Implementation find_simd_implementation(void) {
187187
return SIMD_NONE;
188188
}
189189
#endif

0 commit comments

Comments
 (0)