🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51026

Suppressing specific Warning Errors

#51026
From: Ivo Welch
Date: Tue, 13 Jul 1993 20:08
17 lines
1034 bytes
Is it possible to selectively suppress just one warning in gcc? I have
a class for  which I want to  define an interface  with functions that
are identical to the variable names, e.g.,

	class someclass {
	 protected: int thisvar;
	 public: thisvar() { return thisvar; }
	}

and I get tons of
	warning: shadowing member `ex' with member function

I am aware that   I could change  the name  of the members,  but would
rather not.

/ivo welch
Technical Details
Message-ID: <21v4ob$ihr@news.mic.ucla.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!library.ucla.edu!news.mic.ucla.edu!agsm!iwelch

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,43659a2937a3250e,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-13 13:12:40 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!library.ucla.edu!news.mic.ucla.edu!agsm!iwelch
From: iwelch@agsm.ucla.edu (Ivo Welch)
Newsgroups: gnu.gcc.help
Subject: Suppressing specific Warning Errors
Date: 13 Jul 1993 20:08:43 GMT
Organization: UCLA, Anderson Graduate School Of Management
Lines: 18
Message-ID: <21v4ob$ihr@news.mic.ucla.edu>
NNTP-Posting-Host: risc.agsm.ucla.edu