Skip to content

Commit

Permalink
Revert "Enable __OPAQUE_ERRNO__, to check error code typing."
Browse files Browse the repository at this point in the history
This reverts commit 6037d0259791698b6d3c38452a7c443be9f2bd8b.
  • Loading branch information
le-jzr committed Dec 29, 2017
1 parent bfb1ed8 commit e3415f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kernel/Makefile
Expand Up @@ -86,7 +86,7 @@ clean: autogen_clean
INCLUDES = generic/include genarch/include arch/$(KARCH)/include ../abi/include
INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES))

DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ -D__OPAQUE_ERRNO__
DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__

COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
-ffreestanding -fno-builtin -nostdlib -nostdinc \
Expand Down
3 changes: 1 addition & 2 deletions uspace/Makefile.common
Expand Up @@ -176,8 +176,7 @@ endif
COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
-ffreestanding -fno-builtin -nostdlib -nostdinc -fexec-charset=UTF-8 \
-finput-charset=UTF-8 -D__$(ENDIANESS)__ -fno-common \
-fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \
-D__OPAQUE_ERRNO__
-fdebug-prefix-map=$(realpath $(ROOT_PATH))=.

GCC_CFLAGS = -ffunction-sections -Wall -Wextra -Wno-clobbered \
-Wno-unused-parameter -Wmissing-prototypes -std=gnu99 \
Expand Down
3 changes: 0 additions & 3 deletions uspace/lib/c/generic/vfs/vfs.c
Expand Up @@ -1275,9 +1275,6 @@ errno_t vfs_walk(int parent, const char *path, int flags, int *handle)
errno_t rc_orig;
async_wait_for(req, &rc_orig);

// XXX: Workaround for GCC diagnostics.
*handle = -1;

if (rc_orig != EOK)
return (errno_t) rc_orig;

Expand Down

0 comments on commit e3415f8

Please sign in to comment.