From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ew0-f49.google.com ([209.85.215.49]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9vS1-0000He-FT for linux-mtd@lists.infradead.org; Wed, 13 Apr 2011 08:29:26 +0000 Received: by ewy3 with SMTP id 3so110986ewy.36 for ; Wed, 13 Apr 2011 01:29:21 -0700 (PDT) Subject: Re: [PATCH v2] Fix gcc-4.5.2 "statement with no effect" warnings in UBIFS From: Artem Bityutskiy To: maksim.rayskiy@gmail.com In-Reply-To: <1302646496-32261-1-git-send-email-maksim.rayskiy@gmail.com> References: <1302646496-32261-1-git-send-email-maksim.rayskiy@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 13 Apr 2011 11:26:30 +0300 Message-ID: <1302683190.2768.11.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org, vapier.adi@gmail.com Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2011-04-12 at 15:14 -0700, maksim.rayskiy@gmail.com wrote: > From: Maksim Rayskiy > > When compiling UBIFS with CONFIG_UBIFS_FS_DEBUG not set, > gcc-4.5.2 generates a slew of "warning: statement with no effect" > on references to non-void functions defined as 0. > To avoid these warnings, replace #defines with dummy inline functions. > > Signed-off-by: Maksim Rayskiy This patch does not compile and does not apply to the current tree. I'll need to do a lot of massage as well because I dislike the "tabs as dynamic spaces" style which you use, and the whole UBIFS code does not use this approach, so I would like to maintain consistency. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)