Unverified Commit 7bce4ffb authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2982 from bluca/formattweetnacl

Problem: formatting issues in CI
parents 4726f726 8d544ef1
......@@ -32,18 +32,22 @@
*/
#include "platform.hpp"
#if defined (ZMQ_USE_TWEETNACL)
#if defined(ZMQ_USE_TWEETNACL)
/*
Disable warnings for this source only, rather than for the whole
codebase when building with C99 (gcc >= 4.2) or with Microsoft's compiler
*/
#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) && __STDC_VERSION__ < 201112L
# pragma GCC diagnostic ignored "-Wsign-compare"
#if defined __GNUC__ \
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) \
&& __STDC_VERSION__ < 201112L
#pragma GCC diagnostic ignored "-Wsign-compare"
#elif defined _MSC_VER
# pragma warning (disable:4018 4244 4146)
#pragma warning(disable : 4018 4244 4146)
#endif
// clang-format off
#include "tweetnacl.h"
#define FOR(i,n) for (i = 0;i < n;++i)
......@@ -986,3 +990,4 @@ int sodium_init (void)
#endif
#endif
// clang-format on
......@@ -685,7 +685,7 @@ const char *zmq_msg_gets (const zmq_msg_t *msg_, const char *property_)
}
}
// Polling.
// Polling.
#if defined ZMQ_HAVE_POLLER
inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment