summaryrefslogtreecommitdiff
path: root/util/kconfig/mconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/kconfig/mconf.c')
-rw-r--r--util/kconfig/mconf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/kconfig/mconf.c b/util/kconfig/mconf.c
index 1d651c1382..b4a08440af 100644
--- a/util/kconfig/mconf.c
+++ b/util/kconfig/mconf.c
@@ -952,6 +952,7 @@ static void conf_save(void)
static int handle_exit(void)
{
int res;
+ char *env;
save_and_exit = 1;
reset_subtitle();
@@ -966,6 +967,13 @@ static int handle_exit(void)
end_dialog(saved_x, saved_y);
+ env = getenv("KCONFIG_STRICT");
+ if (env && *env && kconfig_warnings) {
+ fprintf(stderr, _("\n*** ERROR: %d warnings encountered, and "
+ "warnings are errors.\n\n"), kconfig_warnings);
+ res = 2;
+ }
+
switch (res) {
case 0:
if (conf_write(filename)) {