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>