Re: [PATCH libnftnl] expr: Add const qualifiers to *2str translation arrays

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

 



On Fri, Jan 13, 2017 at 11:50:09AM +0100, Tobias Klauser wrote:
> Add const qualifiers to the "to string" translation arrays used by
> various *2str() functions.
> 
> This fixes GCC warnings such as the following when compiling with
> -Wwrite-strings:
> 
>   expr/byteorder.c:176:25: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
> 
> In order to catch these in the future, also add -Wwrite-strings to
> default CFLAGS.

Applied, thanks.
--
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