blob: 4b1e5bb71ee65eb7410147ceb38581473d8b31d9 [file] [log] [blame]
Patrick Georgi0eab62b2023-11-20 19:49:29 +01001Make KCONFIG_WERROR more verbose.
Patrick Georgi53ea1d42019-11-22 16:55:58 +01002
3Index: kconfig/confdata.c
4===================================================================
5--- kconfig.orig/confdata.c
6+++ kconfig/confdata.c
Patrick Georgi0eab62b2023-11-20 19:49:29 +01007@@ -533,8 +533,10 @@ load:
Patrick Georgi53ea1d42019-11-22 16:55:58 +01008 free(line);
9 fclose(in);
Patrick Georgi0eab62b2023-11-20 19:49:29 +010010
11- if (conf_warnings && werror)
12+ if (conf_warnings && werror) {
Patrick Georgi53ea1d42019-11-22 16:55:58 +010013+ fprintf(stderr, "\nERROR: %d warnings encountered, and warnings are errors.\n\n", conf_warnings);
Patrick Georgi0eab62b2023-11-20 19:49:29 +010014 exit(1);
Patrick Georgi53ea1d42019-11-22 16:55:58 +010015+ }
Patrick Georgi0eab62b2023-11-20 19:49:29 +010016
Patrick Georgi53ea1d42019-11-22 16:55:58 +010017 return 0;
18 }