Fix all warnings and add -Werror to CFLAGS so people stop committing broken code

This commit is contained in:
mintsuki 2020-10-01 02:16:28 +02:00
parent d9e40a7dff
commit d9b062917a
3 changed files with 2 additions and 25 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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;
}