Skip to content

Commit aa6c28d

Browse files
committed
Updated Makefile
1 parent 132eee3 commit aa6c28d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OSTOOL_DIR=~/sysroot/usr/bin/
1111

1212
CC=i686-elf-gcc
1313
CCVERSION = $(shell echo $(CC) $(shell $(PREFIX)$(CC) --version | grep $(CC) | sed 's/^.* //g'))
14-
CFLAGS= -I$(INCLUDEDIR) -I/usr/include -nostdlib -DKERNEL_COMPILER="\"$(CCVERSION)\"" -lgcc -fno-builtin -fno-exceptions -fno-leading-underscore -ffreestanding -Wall -ggdb -O0 -D__ENABLE_DEBUG_SYMBOL_LOADING__=1 -D__COMPOSITOR_LOW_END__=1
14+
CFLAGS= -I$(INCLUDEDIR) -I/usr/include -nostdlib -DKERNEL_COMPILER="\"$(CCVERSION)\"" -lgcc -fno-builtin -fno-exceptions -fno-leading-underscore -ffreestanding -Wall -Wpedantic -ggdb -O0 -D__ENABLE_DEBUG_SYMBOL_LOADING__=1 -D__COMPOSITOR_LOW_END__=1
1515

1616
CXX=$(TOOLDIR)/i686-elf-g++
1717
CXXFLAGS=

src/drivers/io/stdout.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ int stdio_ioctl(FILE* f, int request, void *data)
1919
case TIOCSWINSZ:
2020
return -1;
2121
case TIOCGWINSZ:
22+
{
2223
struct winsize w = get_winsize();
2324
memcpy(data, &w, sizeof(struct winsize));
2425
return 0;
26+
}break;
2527
default:
2628
return -1;
2729
}

0 commit comments

Comments
 (0)