From: Masahiro Yamada Date: Wed, 31 Jul 2013 11:45:18 +0900 Subject: [U-Boot] [PATCH] config.mk: Add -Wundef to CFLAGS In-Reply-To: <20130730140716.17ffa50e@lilith> References: <1375153025-20147-1-git-send-email-yamada.m@jp.panasonic.com> <20130730140716.17ffa50e@lilith> Message-ID: <20130731114517.AA41.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Albert > Will the patch cause some targets to break? I don't think so because -Wundef option just prints warnings. GCC manual says: -Wundef Warn if an undefined identifier is evaluated in an ?#if? directive. After applying this patch, I noticed warnings like follows: include/common.h:240:11: warning: "CONFIG_ENV_ADDR" is not defined [-Wundef] include/common.h:240:46: warning: "CONFIG_SYS_MONITOR_BASE" is not defined [-Wundef] include/common.h:241:3: warning: "CONFIG_ENV_ADDR" is not defined [-Wundef] include/common.h:241:23: warning: "CONFIG_SYS_MONITOR_BASE" is not defined [-Wundef] include/common.h:241:49: warning: "CONFIG_SYS_MONITOR_LEN" is not defined [-Wundef] If this patch is applied soon, we have enough time to fix warnings before u-boot-2013.10 release. If I have time, I'd like to make effort to eliminate such warnings. Of course, patches from other contributers are very welcome. Best Regards Masahiro Yamada