remove some warnings of vc
This commit is contained in:
parent
28f2a1fa97
commit
5ccb63a4d6
3 changed files with 6 additions and 1 deletions
|
@ -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%STL_DIR%/stlport /link /libpath:%STL_DIR%/lib
|
||||||
rem set OPT=-GX -I../xbyak
|
rem set OPT=-GX -I../xbyak
|
||||||
rem don't add /Ox
|
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%
|
cl gen_code.cpp %OPT%
|
||||||
gen_code > ..\\xbyak\\xbyak_mnemonic.h
|
gen_code > ..\\xbyak\\xbyak_mnemonic.h
|
||||||
|
|
|
@ -78,6 +78,8 @@ const uint64 YMM = _YMM | _YMM2;
|
||||||
const uint64 NOPARA = 1ULL << (bitEnd - 1);
|
const uint64 NOPARA = 1ULL << (bitEnd - 1);
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
|
Test(const Test&);
|
||||||
|
void operator=(const Test&);
|
||||||
const bool isXbyak_;
|
const bool isXbyak_;
|
||||||
int funcNum_;
|
int funcNum_;
|
||||||
// check all op1, op2, op3
|
// check all op1, op2, op3
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
using namespace Xbyak;
|
using namespace Xbyak;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(disable : 4245)
|
||||||
|
#endif
|
||||||
class Sample : public CodeGenerator {
|
class Sample : public CodeGenerator {
|
||||||
void operator=(const Sample&);
|
void operator=(const Sample&);
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue