From: Brian Behlendorf Date: Tue, 19 Apr 2011 17:39:31 +0000 (-0700) Subject: Set -Wno-unused-but-set-variable globally X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=12c1acde76683108441827ae9affba1872f3afe5;hp=12c1acde76683108441827ae9affba1872f3afe5;p=zfs.git Set -Wno-unused-but-set-variable globally As of gcc-4.6 the option -Wunused-but-set-variable is enabled by default. While this is a useful warning there are numerous places in the ZFS code when a variable is set and then only checked in an ASSERT(). To avoid having to update every instance of this in the code we now set -Wno-unused-but-set-variable to suppress the warning. Additionally, when building with --enable-debug and -Werror set these warning also become fatal. We can reevaluate the suppression of these error at a later time if it becomes an issue. For now we are basically just reverting to the previous gcc behavior. ---