mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Silence clang warnings
This commit is contained in:
committed by
Tom Ritchford
parent
8caae219cf
commit
00310f4f10
@@ -51,6 +51,14 @@
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
#if BEAST_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wreorder"
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
#pragma clang diagnostic ignored "-Wunused-variable"
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
// Compile HyperLevelDB without debugging unless specifically requested
|
||||
#if !defined (NDEBUG) && !defined (RIPPLE_DEBUG_HYPERLEVELDB)
|
||||
#define NDEBUG
|
||||
@@ -114,4 +122,8 @@
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#if BEAST_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -44,6 +44,11 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if BEAST_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
#include <leveldb/db/builder.cc>
|
||||
#include <leveldb/db/db_impl.cc>
|
||||
#include <leveldb/db/db_iter.cc>
|
||||
@@ -96,3 +101,7 @@
|
||||
# error Missing Android port!
|
||||
|
||||
#endif
|
||||
|
||||
#if BEAST_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <beast/Config.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <cstddef>
|
||||
@@ -26,6 +27,15 @@ typedef std::ptrdiff_t ssize_t;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if BEAST_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
#include <snappy/snappy/snappy.cc>
|
||||
#include <snappy/snappy/snappy-sinksource.cc>
|
||||
#include <snappy/snappy/snappy-stubs-internal.cc>
|
||||
|
||||
#if BEAST_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user