forked from KolibriOS/kolibrios
Fix sys/ksys.h -Wextra warnings
just fix warnings: just added parentheses and fix Wunused-param offset
This commit is contained in:
parent
a218a83bd5
commit
aff0b28356
@ -516,7 +516,7 @@ KOSAPI void _ksys_define_button(uint32_t x, uint32_t y, uint32_t w, uint32_t h,
|
||||
|
||||
KOSAPI void _ksys_delete_button(uint32_t id)
|
||||
{
|
||||
asm_inline("int $0x40" ::"a"(8), "d"(id & 0x00FFFFFF | 0x80000000));
|
||||
asm_inline("int $0x40" ::"a"(8), "d"((id & 0x00FFFFFF) | 0x80000000));
|
||||
}
|
||||
|
||||
/*============ Function 9 - information on execution thread. ===========*/
|
||||
@ -1224,11 +1224,12 @@ KOSAPI void ksys_draw_bitmap_palette(void* bitmap, int x, int y, int w, int h, i
|
||||
{
|
||||
asm_inline(
|
||||
"pushl %%ebp\n\t" // save EBP register
|
||||
"movl 0x24(%%ebp), %%ebp\n\t" // 0x24 - "offset" param
|
||||
"movl %0, %%ebp\n\t" // 0x24 - "offset" param
|
||||
"int $0x40\n\t"
|
||||
"popl %%ebp" // restore EBP register
|
||||
:
|
||||
: "a"(65),
|
||||
::
|
||||
"X"(offset),
|
||||
"a"(65),
|
||||
"b"(bitmap),
|
||||
"c"((w << 16) + h),
|
||||
"d"((x << 16) + y),
|
||||
|
Loading…
Reference in New Issue
Block a user