diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-05-10 14:05:21 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-05-10 16:22:38 +0200 |
commit | 3c1616d06cd4f408423ae5d86a1f3ab032931755 (patch) | |
tree | ffef48b79a482460e0ad9334c243ed1cf6518835 /scripts/kconfig | |
parent | 4b70dc441ab40f9583db4bc130b0ba626d3463aa (diff) | |
download | ptxdist-3c1616d06cd4f408423ae5d86a1f3ab032931755.tar.gz ptxdist-3c1616d06cd4f408423ae5d86a1f3ab032931755.tar.xz |
kconfig: warnings are errors unless PTXDIST_FORCE is set
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/menu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index f48dbf9e4..e6f43fc16 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -26,6 +26,8 @@ void menu_warn(struct menu *menu, const char *fmt, ...) vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); + if (!getenv("PTXDIST_FORCE")) + yynerrs++; } static void prop_warn(struct property *prop, const char *fmt, ...) @@ -36,6 +38,8 @@ static void prop_warn(struct property *prop, const char *fmt, ...) vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); + if (!getenv("PTXDIST_FORCE")) + yynerrs++; } void _menu_init(void) |