Enable unknown-pragmas warning for clang

This commit is contained in:
sfc-gh-tclinkenbeard 2021-10-28 16:53:37 -07:00 committed by Trevor Clinkenbeard
parent 8a69aa08a2
commit c7b28abaf0
6 changed files with 11 additions and 1 deletions

View File

@ -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
) )

View File

@ -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 {

View File

@ -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

View File

@ -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>

View File

@ -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) {

View File

@ -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) {