From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F2D7A2C00AA for ; Wed, 9 Oct 2013 08:50:54 +1100 (EST) Date: Tue, 8 Oct 2013 23:42:08 +0200 From: Anatolij Gustschin To: Gerhard Sittig Subject: Re: [PATCH v1] powerpc/mpc512x: silence build warning upon disabled DIU Message-ID: <20131008234208.456c8e84@crub> In-Reply-To: <1380295718-10700-1-git-send-email-gsi@denx.de> References: <1380295718-10700-1-git-send-email-gsi@denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 27 Sep 2013 17:28:38 +0200 Gerhard Sittig 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!