Fix all warnings and add -Werror to CFLAGS so people stop committing broken code
This commit is contained in:
parent
d9e40a7dff
commit
d9b062917a
@ -2,7 +2,7 @@ CC = i386-elf-gcc
|
||||
LD = i386-elf-gcc
|
||||
OBJCOPY = i386-elf-objcopy
|
||||
|
||||
CFLAGS = -flto -Os -pipe -Wall -Wextra
|
||||
CFLAGS = -flto -Os -pipe -Wall -Wextra -Werror
|
||||
|
||||
INTERNAL_CFLAGS = \
|
||||
-std=gnu11 \
|
||||
|
@ -2,7 +2,7 @@ CC = i386-elf-gcc
|
||||
LD = i386-elf-gcc
|
||||
OBJCOPY = i386-elf-objcopy
|
||||
|
||||
CFLAGS = -flto -Os -pipe -Wall -Wextra
|
||||
CFLAGS = -flto -Os -pipe -Wall -Wextra -Werror
|
||||
|
||||
INTERNAL_CFLAGS = \
|
||||
-std=gnu11 \
|
||||
|
@ -74,29 +74,6 @@ void init_vga_textmode(int *_rows, int *_cols) {
|
||||
*_cols = VD_COLS / 2;
|
||||
}
|
||||
|
||||
static void text_set_cursor_palette(uint8_t c) {
|
||||
cursor_palette = c;
|
||||
draw_cursor();
|
||||
return;
|
||||
}
|
||||
|
||||
static uint8_t text_get_cursor_palette(void) {
|
||||
return cursor_palette;
|
||||
}
|
||||
|
||||
static void text_set_text_palette(uint8_t c) {
|
||||
text_palette = c;
|
||||
return;
|
||||
}
|
||||
|
||||
static uint8_t text_get_text_palette(void) {
|
||||
return text_palette;
|
||||
}
|
||||
|
||||
static int text_get_cursor_pos_x(void) {
|
||||
return (cursor_offset % VD_COLS) / 2;
|
||||
}
|
||||
|
||||
static int text_get_cursor_pos_y(void) {
|
||||
return cursor_offset / VD_COLS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user