This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/43245] add option to control "discarding qualifiers" warnings


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43245

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu May  1 07:16:10 2014
New Revision: 209970

URL: http://gcc.gnu.org/viewcvs?rev=209970&root=gcc&view=rev
Log:
    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.

Added:
    trunk/gcc/testsuite/gcc.dg/pr43245.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c.opt
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]