diff options
author | MITSUNARI Shigeo <[email protected]> | 2016-09-29 17:25:41 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2016-09-29 17:25:41 +0900 |
commit | ac4ead3f3487c36fd055510ebbeb79b949c111b4 (patch) | |
tree | 64bcdfb26914e319b7ed4e172a14b3877e64b8c1 | |
parent | ec1d6ef80b0b15b6762978d483aeb9c8ae793983 (diff) | |
download | xbyak-ac4ead3f3487c36fd055510ebbeb79b949c111b4.tar.gz xbyak-ac4ead3f3487c36fd055510ebbeb79b949c111b4.zip |
remove some trivial warning
-rw-r--r-- | test/misc.cpp | 10 | ||||
-rw-r--r-- | xbyak/xbyak.h | 1 | ||||
-rw-r--r-- | xbyak/xbyak_util.h | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/test/misc.cpp b/test/misc.cpp index 5376736..841a788 100644 --- a/test/misc.cpp +++ b/test/misc.cpp @@ -42,26 +42,26 @@ CYBOZU_TEST_AUTO(mov_const) int bit; bool error; } tbl[] = { - { -1, 8, false }, + { uint64_t(-1), 8, false }, { 0x12, 8, false }, { 0x80, 8, false }, { 0xff, 8, false }, { 0x100, 8, true }, { 1, 16, false }, - { -1, 16, false }, + { uint64_t(-1), 16, false }, { 0x7fff, 16, false }, { 0xffff, 16, false }, { 0x10000, 16, true }, - { -1, 32, false }, + { uint64_t(-1), 32, false }, { 0x7fffffff, 32, false }, - { -0x7fffffff, 32, false }, + { uint64_t(-0x7fffffff), 32, false }, { 0xffffffff, 32, false }, { 0x100000000ull, 32, true }, #ifdef XBYAK64 - { -1, 64, false }, + { uint64_t(-1), 64, false }, { 0x7fffffff, 64, false }, { 0xffffffffffffffffull, 64, false }, { 0x80000000, 64, true }, diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index 4aa7407..f931156 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h @@ -998,6 +998,7 @@ inline bool Operand::operator==(const Operand& rhs) const class AddressFrame { void operator=(const AddressFrame&); + AddressFrame(const AddressFrame&); public: const uint32 bit_; const bool broadcast_; diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h index 67fba08..6becf02 100644 --- a/xbyak/xbyak_util.h +++ b/xbyak/xbyak_util.h @@ -310,7 +310,7 @@ class Pack { const Xbyak::Reg64 *tbl_[maxTblNum]; size_t n_; public: - Pack() : n_(0) {} + Pack() : tbl_(), n_(0) {} Pack(const Xbyak::Reg64 *tbl, size_t n) { init(tbl, n); } Pack(const Pack& rhs) : n_(rhs.n_) |