Re: [ULOGD2 PATCH] Use attribute to avoid warning about unused parameter.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Leblond wrote:
> Following live discussion with Pierre Chifflier, it appears that the flag
> -Wno-unused-parameter is deprecated in gcc and has to be replaced by an
> attribute: __attribute__ ((unused)).
> 
> The following patch fixes all warnings related to unused parameters by
> correctly settings the attribute in all unused function parameters. This
> is mainly the case for callback functions. It uses a macro named UNUSED
> which is simply defined as __attribute__((unused)).

I don't like polluting the code with tons of UNUSED flags, sorry. I
prefer if we use several -Wxyz options that may be report useful
warnings instead of -Wextra.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux