Skip to content

Commit 2c1f65e

Browse files
committed
Fix always_inline warning in gcc
The always_inline attribute does not imply C99 inline in some versions of GCC. See also https://bugzilla.mozilla.org/show_bug.cgi?id=697810
1 parent 510f78b commit 2c1f65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sleef/src/common/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ typedef union {
257257
#else
258258
#define CONST
259259
#endif
260-
#define INLINE __attribute__((always_inline))
260+
#define INLINE __attribute__((always_inline)) inline
261261

262262
#if defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__)
263263
#ifndef SLEEF_STATIC_LIBS

0 commit comments

Comments
 (0)