[PATCH v2] Fix gcc-4.5.2 "statement with no effect" warnings in UBIFS

Artem Bityutskiy dedekind1 at gmail.com
Wed Apr 13 04:26:30 EDT 2011


On Tue, 2011-04-12 at 15:14 -0700, maksim.rayskiy at gmail.com wrote:
> From: Maksim Rayskiy <maksim.rayskiy at gmail.com>
> 
> 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 <maksim.rayskiy at gmail.com>

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 (Артём Битюцкий)




More information about the linux-mtd mailing list