Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ukma!mailrus!cornell!batcomputer!jch From: jch@batcomputer.tn.cornell.edu (Jeffrey C Honig) Newsgroups: gnu.gcc Subject: Temporarily disabling warnings Message-ID: <8166@batcomputer.tn.cornell.edu> Date: 11 Jun 89 03:55:30 GMT Reply-To: jch@tcgould.tn.cornell.edu (Jeffrey C Honig) Distribution: gnu Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 16 Is there any way to temporarily disable warnings for certain sections of code? I compile with -Wunused, which causes gcc to complain about my global rcsid varaiable. With the HiC compiler for the PC/RT I can specify: #ifdef _HIGHC_ pragma Off(Warn) #endif _HIGHC_ static char *rcsid = "$Header: /usr/chumley/jch/src/gated/src/RCS/ext.c,v 1.9 89/01/30 19:54:10 jch Exp Locker: jch $"; #ifdef _HIGHC_ pragma Pop(Warn) #endif _HIGHC_ Thanks. Jeff