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

Changeset e805e2f in mainline


Ignore:
Timestamp:
2010-05-26T14:59:49Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
938f227
Parents:
ffe4a87
Message:

use -Werror only in debug builds

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    rffe4a87 re805e2f  
    4141        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    4242        -Werror-implicit-function-declaration -Wwrite-strings \
    43         -Werror -pipe
     43        -pipe
    4444
    4545ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4646        -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \
    47         -Werror-implicit-function-declaration -Werror -wd170
     47        -Werror-implicit-function-declaration -wd170
    4848
    4949SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \
     
    5757        -Werror-implicit-function-declaration -Wwrite-strings \
    5858        -pipe -arch $(CLANG_ARCH)
     59
     60ifeq ($(CONFIG_DEBUG),y)
     61        GCC_CFLAGS += -Werror
     62        ICC_CFLAGS += -Werror
     63endif
    5964
    6065ifeq ($(COMPILER),gcc_native)
  • kernel/Makefile

    rffe4a87 re805e2f  
    9696        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    9797        -Werror-implicit-function-declaration -Wwrite-strings \
    98         -Werror -pipe
     98        -pipe
    9999
    100100ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    101101        -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \
    102         -Werror-implicit-function-declaration -Werror -wd170
     102        -Werror-implicit-function-declaration -wd170
    103103
    104104SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \
     
    112112        -Werror-implicit-function-declaration -Wwrite-strings \
    113113        -pipe -arch $(CLANG_ARCH)
     114
     115ifeq ($(CONFIG_DEBUG),y)
     116        GCC_CFLAGS += -Werror
     117        ICC_CFLAGS += -Werror
     118endif
    114119
    115120-include arch/$(KARCH)/Makefile.inc
  • uspace/Makefile.common

    rffe4a87 re805e2f  
    115115        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    116116        -Werror-implicit-function-declaration -Wwrite-strings \
    117         -Werror -pipe -g -D__$(ENDIANESS)__
     117        -pipe -g -D__$(ENDIANESS)__
    118118
    119119ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    122122        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    123123        -Werror-implicit-function-declaration -Wwrite-strings \
    124         -Werror -pipe -g -D__$(ENDIANESS)__
     124        -pipe -g -D__$(ENDIANESS)__
    125125
    126126CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    131131        -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
    132132
     133ifeq ($(CONFIG_DEBUG),y)
     134        GCC_CFLAGS += -Werror
     135        ICC_CFLAGS += -Werror
     136endif
     137
    133138## Setup platform configuration
    134139#
Note: See TracChangeset for help on using the changeset viewer.