]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/43245 (add option to control "discarding qualifiers" warnings)
authorMarek Polacek <polacek@redhat.com>
Thu, 1 May 2014 07:16:10 +0000 (07:16 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 1 May 2014 07:16:10 +0000 (07:16 +0000)
commitd00887e89999f5f24210f6cd6c3895a64eb9f2cd
tree0e3a810a247c23366f355169db0d3d71078a67f9
parent5436fa2e87fd7df010144347bd3e1fcc0a48d901
re PR c/43245 (add option to control "discarding qualifiers" warnings)

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.

From-SVN: r209970
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr43245.c [new file with mode: 0644]