summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-10-27 06:58:54 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-10-27 06:58:54 +0100
commitc65bf0c5c25c554667aebce9f2d3183cd3af4357 (patch)
treea2b1debcb1687faed8c0d32622119f17531a8bb6 /x-plane-plugin
parentaaed56e93ddff39159f2d0b08d857a4a01a8184a (diff)
fix clang warnings
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index b062bb02..e988313b 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -37,6 +37,12 @@
# define MAP_FAILED ((void*)-1)
#endif
+#ifdef __GNUC__
+# pragma GCC diagnostic ignored "-Wimplicit-float-conversion"
+# pragma GCC diagnostic ignored "-Wdouble-promotion"
+# pragma GCC diagnostic ignored "-Wlanguage-extension-token"
+#endif
+
enum Axis {
TX = 0, TY, TZ, Yaw, Pitch, Roll
};