From aeee0758c2bf1fc2f1c857eb58a1f856eff345b1 Mon Sep 17 00:00:00 2001 From: Danila Malyutin Date: Sat, 15 Aug 2015 02:35:36 +0300 Subject: [PATCH] Ignore warnings in VS from llvm headers --- rpcs3/Emu/Cell/PPULLVMRecompiler.cpp | 6 ++++++ rpcs3/Emu/Cell/PPULLVMRecompiler.h | 6 ++++++ rpcs3/Emu/Cell/PPULLVMRecompilerCore.cpp | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp b/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp index c465346477..6698560fb8 100644 --- a/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp +++ b/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp @@ -5,6 +5,9 @@ #include "Emu/Cell/PPUDisAsm.h" #include "Emu/Cell/PPULLVMRecompiler.h" #include "Emu/Memory/Memory.h" +#ifdef _MSC_VER +#pragma warning(push, 0) +#endif #include "llvm/Support/TargetSelect.h" #include "llvm/Support/Host.h" #include "llvm/Support/ManagedStatic.h" @@ -22,6 +25,9 @@ #include "llvm/Transforms/Vectorize.h" #include "llvm/MC/MCDisassembler.h" #include "llvm/IR/Verifier.h" +#ifdef _MSC_VER +#pragma warning(pop) +#endif using namespace llvm; using namespace ppu_recompiler_llvm; diff --git a/rpcs3/Emu/Cell/PPULLVMRecompiler.h b/rpcs3/Emu/Cell/PPULLVMRecompiler.h index 71fd79f001..665d959017 100644 --- a/rpcs3/Emu/Cell/PPULLVMRecompiler.h +++ b/rpcs3/Emu/Cell/PPULLVMRecompiler.h @@ -8,6 +8,9 @@ #include "Emu/Cell/PPUDecoder.h" #include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUInterpreter.h" +#ifdef _MSC_VER +#pragma warning(push, 0) +#endif #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/SectionMemoryManager.h" #include "llvm/Support/raw_ostream.h" @@ -16,6 +19,9 @@ #include "llvm/IR/Module.h" #include "llvm/IR/GlobalVariable.h" #include "llvm/PassManager.h" +#ifdef _MSC_VER +#pragma warning(pop) +#endif namespace ppu_recompiler_llvm { class Compiler; diff --git a/rpcs3/Emu/Cell/PPULLVMRecompilerCore.cpp b/rpcs3/Emu/Cell/PPULLVMRecompilerCore.cpp index 134c283035..c1632617ad 100644 --- a/rpcs3/Emu/Cell/PPULLVMRecompilerCore.cpp +++ b/rpcs3/Emu/Cell/PPULLVMRecompilerCore.cpp @@ -4,6 +4,9 @@ #include "Emu/System.h" #include "Emu/Cell/PPULLVMRecompiler.h" #include "Emu/Memory/Memory.h" +#ifdef _MSC_VER +#pragma warning(push, 0) +#endif #include "llvm/Support/TargetSelect.h" #include "llvm/Support/Host.h" #include "llvm/Support/ManagedStatic.h" @@ -22,6 +25,9 @@ #include "llvm/Transforms/Vectorize.h" #include "llvm/MC/MCDisassembler.h" #include "llvm/IR/Verifier.h" +#ifdef _MSC_VER +#pragma warning(pop) +#endif using namespace llvm; using namespace ppu_recompiler_llvm;