Libs/newlib: Fix sys/ksys.h -Wextra warnings. #90

Closed
Egor00f wants to merge 2 commits from Egor00f/kolibrios:main into main
Showing only changes of commit aff0b28356 - Show all commits

View File

@ -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) 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. ===========*/ /*============ Function 9 - information on execution thread. ===========*/
@ -1223,12 +1223,13 @@ KOSAPI void _ksys_debug_puts(const char* s)
KOSAPI void ksys_draw_bitmap_palette(void* bitmap, int x, int y, int w, int h, int bpp, void* palette, int offset) KOSAPI void ksys_draw_bitmap_palette(void* bitmap, int x, int y, int w, int h, int bpp, void* palette, int offset)
{ {
asm_inline( asm_inline(
"pushl %%ebp\n\t" // save EBP register "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" "int $0x40\n\t"
"popl %%ebp" // restore EBP register "popl %%ebp" // restore EBP register
: ::
: "a"(65), "X"(offset),
"a"(65),
"b"(bitmap), "b"(bitmap),
"c"((w << 16) + h), "c"((w << 16) + h),
"d"((x << 16) + y), "d"((x << 16) + y),