[lug] g++ on FC2, turning off false warning

Lee Woodworth blug-mail at duboulder.com
Mon Jul 11 10:37:56 MDT 2005


D. Stimits wrote:
> I'm not finding an answer to this, I'm not quite sure how to even look
> it up. I'm using g++ 3.3.3 on Fedora Core 2, and I have a C++ class
> where all members are private, even the destructor and
> constructors...this is intentional, it is NOT an error. g++ demands to
Do you mean private or protected? I'm not sure that even friend classes
can access private members.
> give a warning. Does anyone know of a pragma or switch I can use to stop
> g++ from whining about this...without turning off real warnings? I can
> just see the emails arriving every 5 minutes to ask how to fix it.
> 
> D. Stimits, stimits AT comcast DOT net
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug




More information about the LUG mailing list