If the build treats warnings as errors (CONFIG_ERROR_ON_WARNING=y), then
do not invoke the "#warn 'TODO'" since it unnecessarily fails the build.
BUG=chromium-os:5542
TEST=emerge-daisy chromeos-kernel, make sure this doesn't appear.
Change-Id: I64c1b4d6079980bbea1f808ac038bf5cbe54beb0
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42371
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
#else /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */
-#if defined(CONFIG_ARM_UNWIND)
+#if defined(CONFIG_ARM_UNWIND) && !defined(CONFIG_ERROR_ON_WARNING)
#warning "TODO: return_address should use unwind tables"
#endif