mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Enable unknown-pragmas warning for clang
This commit is contained in:
parent
8a69aa08a2
commit
c7b28abaf0
@ -287,7 +287,6 @@ else()
|
||||
-Wno-format
|
||||
-Wno-sign-compare
|
||||
-Wno-undefined-var-template
|
||||
-Wno-unknown-pragmas
|
||||
-Wno-unknown-warning-option
|
||||
-Wno-unused-parameter
|
||||
)
|
||||
|
@ -38,7 +38,9 @@
|
||||
// PTree also supports efficient finger searches.
|
||||
namespace PTreeImpl {
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4800)
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
struct PTree : public ReferenceCounted<PTree<T>>, FastAllocated<PTree<T>>, NonCopyable {
|
||||
|
@ -70,4 +70,6 @@ T waitNext(const FutureStream<T>&);
|
||||
#define THIS_ADDR uintptr_t(nullptr)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4355) // 'this' : used in base member initializer list
|
||||
#endif
|
||||
|
@ -24,10 +24,12 @@
|
||||
#include "flow/FastRef.h"
|
||||
#pragma once
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4244 4267) // SOMEDAY: Carefully check for integer overflow issues (e.g. size_t to int
|
||||
// conversions like this suppresses)
|
||||
#pragma warning(disable : 4345)
|
||||
#pragma warning(error : 4239)
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
#include <queue>
|
||||
|
@ -37,7 +37,10 @@
|
||||
#include "flow/Util.h"
|
||||
#include "flow/IndexedSet.h"
|
||||
#include "flow/actorcompiler.h" // This must be the last #include.
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4355) // 'this' : used in base member initializer list
|
||||
#endif
|
||||
|
||||
ACTOR template <class T, class X>
|
||||
Future<T> traceAfter(Future<T> what, const char* type, const char* key, X value, bool traceErrors = false) {
|
||||
|
@ -268,7 +268,9 @@ inline void load(Archive& ar, std::map<K, V>& value) {
|
||||
ASSERT(ar.protocolVersion().isValid());
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma intrinsic(memcpy)
|
||||
#endif
|
||||
|
||||
#if VALGRIND
|
||||
static bool valgrindCheck(const void* data, int bytes, const char* context) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user