All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Tobias Klauser <tklauser@distanz.ch>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH libnftnl] expr: Add const qualifiers to *2str translation arrays
Date: Mon, 16 Jan 2017 11:33:13 +0100	[thread overview]
Message-ID: <20170116103313.GA5682@salvia> (raw)
In-Reply-To: <20170113105009.14502-1-tklauser@distanz.ch>

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.

      reply	other threads:[~2017-01-16 10:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 10:50 [PATCH libnftnl] expr: Add const qualifiers to *2str translation arrays Tobias Klauser
2017-01-16 10:33 ` Pablo Neira Ayuso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170116103313.GA5682@salvia \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=tklauser@distanz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.