Merge pull request #1817 from hintjens/master

Problem: tweetnacl gives many warnings on MSVC
This commit is contained in:
Luca Boccassi 2016-02-19 10:48:54 +00:00
commit afdf27765e

View File

@ -30,7 +30,13 @@
#include "platform.hpp"
#if defined (ZMQ_USE_TWEETNACL)
#pragma GCC diagnostic ignored "-Wsign-compare"
// Disable warnings for this source only, rather than for the whole
// codebase
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wsign-compare"
#elif defined _MSC_VER
# pragma warning (disable:4018 4244 4146)
#endif
#include "tweetnacl.h"