Fix strict-alias warnings by removing excessive (and wrong) casts.
This commit is contained in:
parent
91c09a383a
commit
8d6f45f534
@ -37,7 +37,7 @@ _amd64_get_fsbase(void **addr)
|
||||
int ret;
|
||||
|
||||
addr64 = 0;
|
||||
ret = sysarch(_AMD64_GET_FSBASE, (void **)(&addr64));
|
||||
ret = sysarch(_AMD64_GET_FSBASE, &addr64);
|
||||
if (ret != -1)
|
||||
*addr = (void *)(uintptr_t)addr64;
|
||||
return ret;
|
||||
|
@ -37,7 +37,7 @@ _amd64_get_gsbase(void **addr)
|
||||
int ret;
|
||||
|
||||
addr64 = 0;
|
||||
ret = sysarch(_AMD64_GET_GSBASE, (void **)(&addr64));
|
||||
ret = sysarch(_AMD64_GET_GSBASE, &addr64);
|
||||
if (ret != -1)
|
||||
*addr = (void *)(uintptr_t)addr64;
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user