public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43245] add option to control "discarding qualifiers" warnings
       [not found] <bug-43245-4@http.gcc.gnu.org/bugzilla/>
@ 2014-04-29 21:23 ` mpolacek at gcc dot gnu.org
  2014-05-01  7:16 ` mpolacek at gcc dot gnu.org
  2014-05-01  7:17 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-04-29 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Potential fix: http://gcc.gnu.org/ml/gcc-patches/2014-04/msg02016.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/43245] add option to control "discarding qualifiers" warnings
       [not found] <bug-43245-4@http.gcc.gnu.org/bugzilla/>
  2014-04-29 21:23 ` [Bug c/43245] add option to control "discarding qualifiers" warnings mpolacek at gcc dot gnu.org
@ 2014-05-01  7:16 ` mpolacek at gcc dot gnu.org
  2014-05-01  7:17 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-01  7:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/43245] add option to control "discarding qualifiers" warnings
       [not found] <bug-43245-4@http.gcc.gnu.org/bugzilla/>
  2014-04-29 21:23 ` [Bug c/43245] add option to control "discarding qualifiers" warnings mpolacek at gcc dot gnu.org
  2014-05-01  7:16 ` mpolacek at gcc dot gnu.org
@ 2014-05-01  7:17 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-01  7:17 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/43245] add option to control "discarding qualifiers" warnings
  2010-03-03 10:21 [Bug c/43245] New: discarding const char * qualifiers cannot be disabled or turned into an error kees dot dekker at infor dot com
@ 2010-03-03 15:37 ` manu at gcc dot gnu dot org
  0 siblings, 0 replies; 4+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-03-03 15:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from manu at gcc dot gnu dot org  2010-03-03 15:36 -------
Use -fdiagnostics-show-option to see which option controls a warning. In this
case, it will show nothing (this is another bug that will be fixed in GCC 4.6)
because, unfortunately, this is a default pedantic warning, so right now your
only choice is to use -pedantic-errors. I turned this to a feature request to
add an option to control the warning, for example, -Wdiscarded-qualifiers. 

This is trivial but trunk is on regressions-only mode, so it won't be available
until GCC 4.6.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
           Severity|normal                      |enhancement
            Summary|discarding const char *     |add option to control
                   |qualifiers cannot be        |"discarding qualifiers"
                   |disabled or turned into an  |warnings
                   |error                       |


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-01  7:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43245-4@http.gcc.gnu.org/bugzilla/>
2014-04-29 21:23 ` [Bug c/43245] add option to control "discarding qualifiers" warnings mpolacek at gcc dot gnu.org
2014-05-01  7:16 ` mpolacek at gcc dot gnu.org
2014-05-01  7:17 ` mpolacek at gcc dot gnu.org
2010-03-03 10:21 [Bug c/43245] New: discarding const char * qualifiers cannot be disabled or turned into an error kees dot dekker at infor dot com
2010-03-03 15:37 ` [Bug c/43245] add option to control "discarding qualifiers" warnings manu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).