From 5ccb63a4d6ebd9db14b68ed9fec3fb8c50f64451 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 18 Aug 2015 11:55:10 +0900 Subject: [PATCH] remove some warnings of vc --- gen/update.bat | 2 +- test/make_nm.cpp | 2 ++ test/nm_frame.cpp | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gen/update.bat b/gen/update.bat index 8054ce6..8286966 100644 --- a/gen/update.bat +++ b/gen/update.bat @@ -2,6 +2,6 @@ rem set STL_DIR=c:/s/STLport rem set OPT=-GX -I%STL_DIR%/stlport /link /libpath:%STL_DIR%/lib rem set OPT=-GX -I../xbyak rem don't add /Ox -set OPT=/EHsc -I../xbyak +set OPT=/EHsc -I../xbyak /W4 -D_CRT_SECURE_NO_WARNINGS cl gen_code.cpp %OPT% gen_code > ..\\xbyak\\xbyak_mnemonic.h diff --git a/test/make_nm.cpp b/test/make_nm.cpp index a8989d2..d0a932f 100644 --- a/test/make_nm.cpp +++ b/test/make_nm.cpp @@ -78,6 +78,8 @@ const uint64 YMM = _YMM | _YMM2; const uint64 NOPARA = 1ULL << (bitEnd - 1); class Test { + Test(const Test&); + void operator=(const Test&); const bool isXbyak_; int funcNum_; // check all op1, op2, op3 diff --git a/test/nm_frame.cpp b/test/nm_frame.cpp index b9cc06c..2f02f4d 100644 --- a/test/nm_frame.cpp +++ b/test/nm_frame.cpp @@ -3,6 +3,9 @@ using namespace Xbyak; +#ifdef _MSC_VER + #pragma warning(disable : 4245) +#endif class Sample : public CodeGenerator { void operator=(const Sample&); public: