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 | |
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')
-rw-r--r-- | scripts/kconfig/menu.c | 4 | ||||
-rw-r--r-- | scripts/ptx-modifications/0007-warnings-are-errors-unless-PTXDIST_FORCE-is-set.patch | 31 | ||||
-rw-r--r-- | scripts/ptx-modifications/series | 1 |
3 files changed, 36 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) diff --git a/scripts/ptx-modifications/0007-warnings-are-errors-unless-PTXDIST_FORCE-is-set.patch b/scripts/ptx-modifications/0007-warnings-are-errors-unless-PTXDIST_FORCE-is-set.patch new file mode 100644 index 000000000..7a7daebe9 --- /dev/null +++ b/scripts/ptx-modifications/0007-warnings-are-errors-unless-PTXDIST_FORCE-is-set.patch @@ -0,0 +1,31 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Fri, 10 May 2019 14:05:21 +0200 +Subject: [PATCH] warnings are errors unless PTXDIST_FORCE is set + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + scripts/kconfig/menu.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c +index f48dbf9e4b40..e6f43fc166d9 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) diff --git a/scripts/ptx-modifications/series b/scripts/ptx-modifications/series index b2839fd13..73257cc7b 100644 --- a/scripts/ptx-modifications/series +++ b/scripts/ptx-modifications/series @@ -8,3 +8,4 @@ 0004-Revert-kconfig-ignore-select-of-unknown-symbol.patch 0005-nconf-remove-special-P_COMMENT-output.patch 0006-mconf-fix-comment-on-exit.patch +0007-warnings-are-errors-unless-PTXDIST_FORCE-is-set.patch |