Skip to content

Commit e72d65b

Browse files
committed
Avoid warnings on linux
1 parent ce5d2f8 commit e72d65b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

thirdparty/rive_renderer/rive_renderer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#pragma clang diagnostic push
2626
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
2727
#pragma clang diagnostic ignored "-Wattributes"
28+
#elif __GNUC__
29+
#pragma GCC diagnostic push
30+
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
31+
#pragma GCC diagnostic ignored "-Wattributes"
2832
#endif
2933

3034
#include "source/draw.cpp"
@@ -43,4 +47,6 @@
4347

4448
#if __clang__
4549
#pragma clang diagnostic pop
50+
#elif __GNUC__
51+
#pragma GCC diagnostic pop
4652
#endif

thirdparty/rive_renderer/rive_renderer_linux.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#pragma clang diagnostic push
2626
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
2727
#pragma clang diagnostic ignored "-Wattributes"
28+
#elif __GNUC__
29+
#pragma GCC diagnostic push
30+
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
31+
#pragma GCC diagnostic ignored "-Wattributes"
2832
#endif
2933

3034
#include "source/gl/gl_state.cpp"
@@ -40,4 +44,6 @@
4044

4145
#if __clang__
4246
#pragma clang diagnostic pop
47+
#elif __GNUC__
48+
#pragma GCC diagnostic pop
4349
#endif

0 commit comments

Comments
 (0)