#pragma to suppress warning

Alexandre Oliva aoliva@redhat.com
Thu Jul 5 05:28:00 GMT 2001


On Jul  5, 2001, "Pramod R. Bhagwat" <pramod@ncoretech.com> wrote:

> is there any #pragma available in gcc, to suppress unused
> variable warning.

GCC discourages the uses of #pragmas, using attributes instead.  Look
for attribute `unused' in the GCC manual.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-help mailing list