diff options
Diffstat (limited to 'util/kconfig/nconf.c')
-rw-r--r-- | util/kconfig/nconf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util/kconfig/nconf.c b/util/kconfig/nconf.c index 984489ef2b..bc845fc6fc 100644 --- a/util/kconfig/nconf.c +++ b/util/kconfig/nconf.c @@ -646,6 +646,8 @@ static const char *set_config_filename(const char *config_filename) static int do_exit(void) { int res; + char *env; + if (!conf_get_changed()) { global_exit = 1; return 0; @@ -661,6 +663,15 @@ static int do_exit(void) return -1; } + env = getenv("KCONFIG_STRICT"); + if (env && *env && kconfig_warnings) { + btn_dialog(main_window, + _("\nWarnings encountered, and warnings are errors.\n\n"), + 1, + "<OK>"); + res = 2; + } + /* if we got here, the user really wants to exit */ switch (res) { case 0: |