From fadf399405ca5d918dd5e1182fadc3d82f6bc900 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 6 Jul 2013 17:35:49 +0200 Subject: (nothing) --- src/common.make | 2 +- src/kernel/vfs/vdir.h | 4 ++++ src/user/app/kbasic/commands.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common.make b/src/common.make index be30752..1b3e6aa 100644 --- a/src/common.make +++ b/src/common.make @@ -3,7 +3,7 @@ # ============== ENVIRONMENT VARIABLES CC = i586-elf-gcc -CFLAGS = -m32 -nostdlib -nostdinc -nostartfiles -nodefaultlibs -fno-builtin -ffreestanding -fno-stack-protector -Wall -Werror -Wno-error=main +CFLAGS = -m32 -nostdlib -nostdinc -nostartfiles -nodefaultlibs -fno-builtin -ffreestanding -fno-stack-protector -Wall -Werror -Wno-error=main -O1 CCFLAGS = CXX = i586-elf-g++ CXXFLAGS = -fno-rtti -fno-exceptions -Wno-write-strings -Wno-main -Wno-error=unused-parameter diff --git a/src/kernel/vfs/vdir.h b/src/kernel/vfs/vdir.h index 366b3f1..6aacc2f 100644 --- a/src/kernel/vfs/vdir.h +++ b/src/kernel/vfs/vdir.h @@ -12,6 +12,10 @@ struct vdir_child { vdir_child(char* na, node* nd) : el(nd) { name = strdup(na); } + + virtual ~vdir_child() { + free(name); + } }; class vdir : public node { diff --git a/src/user/app/kbasic/commands.c b/src/user/app/kbasic/commands.c index b88e57e..3e47896 100644 --- a/src/user/app/kbasic/commands.c +++ b/src/user/app/kbasic/commands.c @@ -41,7 +41,7 @@ void exec_print() { int answer; int len=0, spaces; - char last_delim; + char last_delim = 0; do { get_token(); /* get next list item */ -- cgit v1.2.3