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