送交者: Duke 于 2005-3-04, 13:33:01:
回答: -Wno-invalid-offsetof 由 steven 于 2005-3-03, 22:43:48:
Thanks, Steven. I tried it but it gave me the following:
cc1plus: unrecognized option '-Wno-invalid-offsetof'.
Is there something I need to set first. I'm using g++ instead of gcc. Does that make a difference?
By the way, where do I find such options?
I'm just curious about suppressing warnings in general. For this particular case, I've already modified my code so that it does not use offsetof() any more.
Thanks again.