Skip to content

Commit

Permalink
Merge remote-tracking branch 'nicknitewolf/lineage-17.1' into lineage…
Browse files Browse the repository at this point in the history
…-17.1
  • Loading branch information
polesapart committed Jun 26, 2020
2 parents fc293cd + e4a874f commit b9edcb3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,10 @@ else
KBUILD_CFLAGS += -O2
endif

ifdef CONFIG_CC_WERROR
KBUILD_CFLAGS += -Werror
endif

include $(srctree)/arch/$(SRCARCH)/Makefile

# Tell gcc to never replace conditional load with a non-conditional one
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/lineageos_wt88047_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ CONFIG_SCHEDSTATS=y
CONFIG_IPC_LOGGING=y
# CONFIG_FTRACE is not set
CONFIG_PANIC_ON_DATA_CORRUPTION=y
CONFIG_CC_WERROR=y
CONFIG_KEYS=y
CONFIG_SECURITY_PERF_EVENTS_RESTRICT=y
CONFIG_SECURITY=y
Expand Down
10 changes: 10 additions & 0 deletions lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,16 @@ config PANIC_ON_DATA_CORRUPTION
recoverable data corruption scenarios to system-halting panics,
for easier detection and debug.

config CC_WERROR
bool "Treat all compile warnings as errors"
default n
help
Select this option to set compiler warnings as errors,
to prevent easily-fixable problems from creeping into
the codebase.

If unsure, say N.

source "samples/Kconfig"

source "lib/Kconfig.kgdb"
Expand Down

0 comments on commit b9edcb3

Please sign in to comment.