Skip to content

Commit

Permalink
remove some trivial warning
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Sep 29, 2016
1 parent ec1d6ef commit ac4ead3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
1 change: 1 addition & 0 deletions xbyak/xbyak.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down
2 changes: 1 addition & 1 deletion xbyak/xbyak_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down

0 comments on commit ac4ead3

Please sign in to comment.