This is the mail archive of the gcc@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]

Re: Suppressing specific compiler warnings


Banibrata Dutta wrote:
> Hi,
>  
> I've wondered for a long time as to why the ability to suppress specific
> compiler warnings is missing in GCC.
> Has this ever been discussed ? Having this would be very useful in cases
> where we treat warnings and errors and cause build to break. At times there
> are warnings which we decide to live with, because they reflect a deliberate
> decision.

See:

  http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

Useful snippet:

  "You can request many specific warnings with options
  beginning -W, for example -Wimplicit to request warnings
  on implicit declarations. Each of these specific warning
  options also has a negative form beginning -Wno- to turn
  off warnings; for example, -Wno-implicit. This manual
  lists only one of the two forms, whichever is not the
  default."

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/


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