Skip to content

Commit 3547fa1

Browse files
authored
Merge pull request #782 from nobu/unknown-pragmas
Suppress -Wunknown-pragmas warnings
2 parents 0d4fc66 + 97f47d1 commit 3547fa1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext/json/ext/vendor/jeaiii-ltoa.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ SOFTWARE.
3535
typedef uint_fast32_t u32_t;
3636
typedef uint_fast64_t u64_t;
3737

38+
#if defined __clang__
3839
#pragma clang diagnostic push
3940
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
40-
41+
#elif defined __GNUC__
4142
#pragma GCC diagnostic push
4243
#pragma GCC diagnostic ignored "-Wmissing-braces"
44+
#endif
4345

4446
#define u32(x) ((u32_t)(x))
4547
#define u64(x) ((u64_t)(x))
@@ -270,8 +272,10 @@ jeaiii_ultoa(char *b, u64_t n)
270272
#undef u64
271273
#undef COPY
272274

275+
#if defined __clang__
273276
#pragma clang diagnostic pop
277+
#elif defined __GNUC__
274278
#pragma GCC diagnostic pop
279+
#endif
275280

276281
#endif // JEAIII_TO_TEXT_H_
277-

0 commit comments

Comments
 (0)