On 04/29/14 15:20, Marek Polacek wrote:
I think we should have an option to turn off various "discards
qualifier" warnings (only for C), or to make them hard errors.
This patch adds new option, called -Wdiscarded-qualifiers (as
suggested in the BZ) for that.

Regtested/bootstrapped on x86_64-linux, ok for trunk?

2014-04-29  Marek Polacek  <pola...@redhat.com>

        PR c/43245
        * doc/invoke.texi: Document -Wdiscarded-qualifiers.
c-family/
        * c.opt (Wdiscarded-qualifiers): Add.
c/
        * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
        instead of 0 to WARN_FOR_QUALIFIERS.
testsuite/
        * gcc.dg/pr43245.c: New test.
OK.  Thanks.

Jeff

Reply via email to