public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/15450] Ability to turn selected warnings into errors.
       [not found] <bug-15450-4@http.gcc.gnu.org/bugzilla/>
@ 2023-03-31 11:38 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-31 11:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15450

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note for long long, you can use -Wno-long-long which is documented here:
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Warning-Options.html#index-Wlong-long

Been around since 3.1:
https://gcc.gnu.org/onlinedocs/gcc-3.1.1/gcc/Warning-Options.html#Warning%20Options
-Wlong-long
Warn if long long type is used. This is default. To inhibit the warning
messages, use -Wno-long-long. Flags -Wlong-long and -Wno-long-long are taken
into account only when -pedantic flag is used.

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

* [Bug c/15450] Ability to turn selected warnings into errors.
       [not found] <20040514231716.15450.nick@reloco.com.ar>
  2004-05-15 18:19 ` pinskia at gcc dot gnu dot org
@ 2004-05-16 19:03 ` nick at reloco dot com dot ar
  1 sibling, 0 replies; 3+ messages in thread
From: nick at reloco dot com dot ar @ 2004-05-16 19:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nick at reloco dot com dot ar  2004-05-15 16:25 -------
No, that warning will prevent perfectly valid programs from compiling, e.g.
those using "long long".

The warning I've mentioned *always* produces invalid code when "declaring
pointers" in that arch.


-- 


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


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

* [Bug c/15450] Ability to turn selected warnings into errors.
       [not found] <20040514231716.15450.nick@reloco.com.ar>
@ 2004-05-15 18:19 ` pinskia at gcc dot gnu dot org
  2004-05-16 19:03 ` nick at reloco dot com dot ar
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-15 18:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-15 00:42 -------
Use -pedantic for this case it turns this warning into an error, you could also use -pedantic-errors for 
most other pedantic warnings into errors problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2023-03-31 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-15450-4@http.gcc.gnu.org/bugzilla/>
2023-03-31 11:38 ` [Bug c/15450] Ability to turn selected warnings into errors pinskia at gcc dot gnu.org
     [not found] <20040514231716.15450.nick@reloco.com.ar>
2004-05-15 18:19 ` pinskia at gcc dot gnu dot org
2004-05-16 19:03 ` nick at reloco dot com dot ar

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).