Quieting TArray hidden virtual warnings
Quieting TArray hidden virtual warnings
- Subject: Quieting TArray hidden virtual warnings
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 30 Jul 2005 18:08:30 -0400
I'm converting a PowerPlant-based project from Metrowerks to Xcode.
A large source of warnings are hidden virtual methods from concrete
instances of TArray. I've searched the web and discovered that this
aspect of the TArray class in PowerPlant is well known, and it's
accepted that the warnings are "safe" and can be turned off. I'd
rather not turn off the warning across the board. I have seen it
suggested that warnings can be enabled/disabled on a file-by-file
basis in Xcode, but this doesn't seem to work for header files -
which is where all of my TArray declarations are found! For example,
many of the errors arise during my precompiled header compile, so I
added this to my precomp.h file: "-Wno-overloaded-virtual". This
doesn't seem to get passed through by Xcode for the compile of that
header, though.
Has anybody solved this problem or have any advice? Turning the
warning off for the entire target does the trick, but as I said I'd
like to keep this warning because it's saved me a few times in the
past...
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden