解决编译器警告

This commit is contained in:
fslongjin 2022-08-04 22:14:04 +08:00
parent 17d5fea2cf
commit 0dc12cb1ca
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ struct bt_node_t *bt_create_node(struct bt_node_t *left, struct bt_node_t *right
return node; return node;
nomem:; nomem:;
return -ENOMEM; return (void*)-ENOMEM;
} }
/** /**
* @brief * @brief

View File

@ -294,7 +294,7 @@ struct multiboot_tag_framebuffer_info_t
// indexed color // indexed color
struct multiboot_tag_framebuffer_info_type0_t struct multiboot_tag_framebuffer_info_type0_t
{ {
struct multiboot_tag_framebuffer_info_t; struct multiboot_tag_framebuffer_info_t header;
uint32_t framebuffer_palette_num_colors; uint32_t framebuffer_palette_num_colors;
struct multiboot_color_t color_desc; struct multiboot_color_t color_desc;
}; };
@ -302,7 +302,7 @@ struct multiboot_tag_framebuffer_info_type0_t
// direct RGB color // direct RGB color
struct multiboot_tag_framebuffer_info_type1_t struct multiboot_tag_framebuffer_info_type1_t
{ {
struct multiboot_tag_framebuffer_info_t; struct multiboot_tag_framebuffer_info_t header;
uint8_t framebuffer_red_field_position; uint8_t framebuffer_red_field_position;
uint8_t framebuffer_red_mask_size; uint8_t framebuffer_red_mask_size;