public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/19588] New: Documentation: Help on no-show of warning is missing @ 2005-01-23 12:43 mail at thorstenhau dot de 2005-01-23 16:25 ` [Bug c/19588] " pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 7+ messages in thread From: mail at thorstenhau dot de @ 2005-01-23 12:43 UTC (permalink / raw) To: gcc-bugs [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 980 bytes --] I want to un-show a specific warning, namely the one about string length: "Warnung: Zeichenkettenlänge »5388« ist größer als die Länge »509«, die von ISO-C89-Compilern unterstützt werden muss" (which translates roughly to "Warning: String length »5388« is larger than the length »509« which is required to be supported by ISO-C89 compilers"). The documentation on http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Warning-Options.html#Warning-Options does show how to do this. Please note that I'm quite happy with all other warnings. -- Summary: Documentation: Help on no-show of warning is missing Product: gcc Version: 3.3.5 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mail at thorstenhau dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/19588] Documentation: Help on no-show of warning is missing 2005-01-23 12:43 [Bug c/19588] New: Documentation: Help on no-show of warning is missing mail at thorstenhau dot de @ 2005-01-23 16:25 ` pinskia at gcc dot gnu dot org 2005-01-23 19:49 ` mail at thorstenhau dot de ` (3 subsequent siblings) 4 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-23 16:25 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-23 16:24 ------- That is because there is no support yet, see PR 9049 which I am closing this as a dup of. *** This bug has been marked as a duplicate of 9049 *** -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/19588] Documentation: Help on no-show of warning is missing 2005-01-23 12:43 [Bug c/19588] New: Documentation: Help on no-show of warning is missing mail at thorstenhau dot de 2005-01-23 16:25 ` [Bug c/19588] " pinskia at gcc dot gnu dot org @ 2005-01-23 19:49 ` mail at thorstenhau dot de 2005-01-23 19:53 ` pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 7+ messages in thread From: mail at thorstenhau dot de @ 2005-01-23 19:49 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From mail at thorstenhau dot de 2005-01-23 19:49 ------- I don't want to exclude warnings for a specific part of the code, but a specific warning for all code. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/19588] Documentation: Help on no-show of warning is missing 2005-01-23 12:43 [Bug c/19588] New: Documentation: Help on no-show of warning is missing mail at thorstenhau dot de 2005-01-23 16:25 ` [Bug c/19588] " pinskia at gcc dot gnu dot org 2005-01-23 19:49 ` mail at thorstenhau dot de @ 2005-01-23 19:53 ` pinskia at gcc dot gnu dot org 2005-01-23 20:18 ` mail at thorstenhau dot de 2005-07-02 2:00 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-23 19:53 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-23 19:53 ------- You can use that to disable this warning for all sources by putting a #pragma in a header that gets included. There is no way to disable this warning at all (I assume you are using -pedantic since that is only when this warning gets enabled as C90 says you only have support up to certain length of strings constants). *** This bug has been marked as a duplicate of 9049 *** -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/19588] Documentation: Help on no-show of warning is missing 2005-01-23 12:43 [Bug c/19588] New: Documentation: Help on no-show of warning is missing mail at thorstenhau dot de ` (2 preceding siblings ...) 2005-01-23 19:53 ` pinskia at gcc dot gnu dot org @ 2005-01-23 20:18 ` mail at thorstenhau dot de 2005-07-02 2:00 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 7+ messages in thread From: mail at thorstenhau dot de @ 2005-01-23 20:18 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From mail at thorstenhau dot de 2005-01-23 20:18 ------- That would be a workaround, not a solution. What I'm looking for is -Wno-string-length. I think it should be possible to diable any warning. Since you seem to see -pedantic as one big heap I'll make this a feature request. -- What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |enhancement Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/19588] Documentation: Help on no-show of warning is missing 2005-01-23 12:43 [Bug c/19588] New: Documentation: Help on no-show of warning is missing mail at thorstenhau dot de ` (3 preceding siblings ...) 2005-01-23 20:18 ` mail at thorstenhau dot de @ 2005-07-02 2:00 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-07-02 2:00 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-02 01:59 ------- Confirmed, -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-07-02 01:59:56 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-19588-9988@http.gcc.gnu.org/bugzilla/>]
* [Bug c/19588] Documentation: Help on no-show of warning is missing [not found] <bug-19588-9988@http.gcc.gnu.org/bugzilla/> @ 2006-01-29 3:34 ` pinskia at gcc dot gnu dot org 0 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-01-29 3:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from pinskia at gcc dot gnu dot org 2006-01-29 03:34 ------- The options in 4.2.0 is "-Woverlength-strings" Fixed by: * c.opt: Add -W(no-)overlength-strings. * doc/invoke.texi: Document it. * c-opts.c (c_common_handle_option): -pedantic implies -Woverlength-strings, if not explicitly disabled already. (c_common_post_options): -Woverlength-strings defaults to off, and is always off for C++. * c-common.c (fix_string_type): Issue warning about strings longer than is portable only if warn_overlength_strings. Rearrange code a little for clarity. * configure.in: Check for -Wno-overlength-strings as well before enabling -pedantic in stage 1. * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings. (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete. http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110360 -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19588 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-01-29 3:34 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-01-23 12:43 [Bug c/19588] New: Documentation: Help on no-show of warning is missing mail at thorstenhau dot de 2005-01-23 16:25 ` [Bug c/19588] " pinskia at gcc dot gnu dot org 2005-01-23 19:49 ` mail at thorstenhau dot de 2005-01-23 19:53 ` pinskia at gcc dot gnu dot org 2005-01-23 20:18 ` mail at thorstenhau dot de 2005-07-02 2:00 ` pinskia at gcc dot gnu dot org [not found] <bug-19588-9988@http.gcc.gnu.org/bugzilla/> 2006-01-29 3:34 ` pinskia 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).