CPPFLAGS += -I./include -I./arch/$(ARCHDIR)/include -D_MODULE_NAME_=\"Kernel\"
CPPFLAGS += -DARCH=$(ARCH) -DARCHDIR=$(ARCHDIR) -DARCHDIR_IS_$(ARCHDIR)=1
CPPFLAGS += -DKERNEL_VERSION=$(KERNEL_VERSION)
-CFLAGS += -Wall -Werror -fno-stack-protector -fno-builtin -Wstrict-prototypes -g
+CFLAGS += -Wall -Werror -fno-stack-protector -Wstrict-prototypes -g
CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized
LDFLAGS += -T arch/$(ARCHDIR)/link.ld -g
}
// - Fetch ChRoot
- if( chroot == NULL ) {
+ if( chroot == NULL )
chroot = "";
- chrootLen = 0;
- } else {
- chrootLen = strlen(chroot);
- }
+ chrootLen = strlen(chroot);
// Check if the path is already absolute
if(Path[0] == '/') {
ret[iPos2] = 0;
// Prepend the chroot
- memcpy( ret, chroot, chrootLen );
+ if(chrootLen)
+ memcpy( ret, chroot, chrootLen );
LEAVE('s', ret);
// Log_Debug("VFS", "VFS_GetAbsPath: RETURN '%s'", ret);
}
{
- int len = sprintf(NULL, "%i", rt->Node.Inode);
+ int len = sprintf(NULL, "%i", (int)rt->Node.Inode);
char buf[len+1];
- sprintf(buf, "%i", rt->Node.Inode);
+ sprintf(buf, "%i", (int)rt->Node.Inode);
return strdup(buf);
}
}
CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR)
CPPFLAGS += $(_CPPFLAGS)
CPPFLAGS += $(LIBINCLUDES)
-CFLAGS := -std=gnu99 -Wall -Werror -fno-stack-protector -g -O3 -fno-builtin
+CFLAGS := -std=gnu99 -Wall -Werror -fno-stack-protector -g -O3
ifneq ($(CATEGORY),)
FULLNAME := $(CATEGORY)_$(NAME)