[PATCH v1] powerpc/mpc512x: silence build warning upon disabled DIU

Anatolij Gustschin agust at denx.de
Wed Oct 9 08:42:08 EST 2013


On Fri, 27 Sep 2013 17:28:38 +0200
Gerhard Sittig <gsi at denx.de> wrote:

> a disabled Kconfig option results in a reference to a not implemented
> routine when the IS_ENABLED() macro is used for both conditional
> implementation of the routine as well as a C language source code test
> at the call site -- the "if (0) func();" construct only gets eliminated
> later by the optimizer, while the compiler already has emitted its
> warning about "func()" being undeclared

applied, thanks!


More information about the Linuxppc-dev mailing list