From eb140fd30f811a833a819a9ddba3d7839a162b91 Mon Sep 17 00:00:00 2001
From: XMRig <support@xmrig.com>
Date: Mon, 14 Aug 2017 09:53:48 +0300
Subject: [PATCH] Fix gcc warnings.

---
 src/3rdparty/jansson/dump.c      | 2 ++
 src/3rdparty/jansson/hashtable.c | 2 ++
 src/net/Network.cpp              | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/src/3rdparty/jansson/dump.c b/src/3rdparty/jansson/dump.c
index a332241d6..59b9b2c73 100644
--- a/src/3rdparty/jansson/dump.c
+++ b/src/3rdparty/jansson/dump.c
@@ -5,7 +5,9 @@
  * it under the terms of the MIT license. See LICENSE for details.
  */
 
+#ifdef _MSC_VER
 #pragma warning(disable:4090)
+#endif
 
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
diff --git a/src/3rdparty/jansson/hashtable.c b/src/3rdparty/jansson/hashtable.c
index e79f83cd3..dcc1687b7 100644
--- a/src/3rdparty/jansson/hashtable.c
+++ b/src/3rdparty/jansson/hashtable.c
@@ -5,7 +5,9 @@
  * it under the terms of the MIT license. See LICENSE for details.
  */
 
+#ifdef _MSC_VER
 #pragma warning(disable:4334)
+#endif
 
 #if HAVE_CONFIG_H
 #include <jansson_private_config.h>
diff --git a/src/net/Network.cpp b/src/net/Network.cpp
index a5132c73b..04ce2ae7d 100644
--- a/src/net/Network.cpp
+++ b/src/net/Network.cpp
@@ -21,7 +21,9 @@
  *   along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifdef _MSC_VER
 #pragma warning(disable:4244)
+#endif
 
 #include <inttypes.h>
 #include <memory>