remove warning for gcc 4.7
This commit is contained in:
parent
0ed670f409
commit
17a9cd71be
6 changed files with 12 additions and 12 deletions
|
@ -50,7 +50,7 @@ void putCPUinfo()
|
|||
if (cpu.has(Cpu::tPOPCNT)) {
|
||||
const int n = 0x12345678; // bitcount = 13
|
||||
const int ok = 13;
|
||||
int r = ((int (*)())((void*)PopCountTest(n).getCode()))();
|
||||
int r = ((int (*)())((const void*)PopCountTest(n).getCode()))();
|
||||
if (r == ok) {
|
||||
puts("popcnt ok");
|
||||
} else {
|
||||
|
@ -71,7 +71,7 @@ struct EipTest : public Xbyak::CodeGenerator {
|
|||
void putEip()
|
||||
{
|
||||
EipTest s;
|
||||
int (*getEip)() = (int(*)())(void*)s.getCode();
|
||||
int (*getEip)() = (int(*)())(const void*)s.getCode();
|
||||
printf("eip=%08x\n", getEip());
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue