Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e211ea04 in mainline


Ignore:
Timestamp:
2018-01-04T20:50:52Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
847844a
Parents:
46577995
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
Message:

Enable __OPAQUE_ERRNO__, to check error code typing.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r46577995 re211ea04  
    8787INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES))
    8888
    89 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
     89DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ -D__OPAQUE_ERRNO__
    9090
    9191COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
  • uspace/Makefile.common

    r46577995 re211ea04  
    177177        -ffreestanding -fno-builtin -nostdlib -nostdinc -fexec-charset=UTF-8 \
    178178        -finput-charset=UTF-8 -D__$(ENDIANESS)__ -fno-common \
    179         -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
     179        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \
     180        -D__OPAQUE_ERRNO__
    180181
    181182GCC_CFLAGS = -ffunction-sections -Wall -Wextra -Wno-clobbered \
  • uspace/lib/c/generic/vfs/vfs.c

    r46577995 re211ea04  
    12791279        async_wait_for(req, &rc_orig);
    12801280
     1281        // XXX: Workaround for GCC diagnostics.
     1282        *handle = -1;
     1283
    12811284        if (rc_orig != EOK)
    12821285                return (errno_t) rc_orig;
Note: See TracChangeset for help on using the changeset viewer.