Suppress "String literal warnings"

I'm trying to suppress the "String literal converted to char*" warnings from the C++ compiler. I found documentation that says I can do this with the -erroff option and that -errtags=yes will show me the tag to use. With -errtags=yes, I see:

"disk_space.cpp", line 85: Warning, wbadinitl: String literal converted to char* in initialization.

In place of wbadinitl, I also see badargtypel2w and wbadasgl. If I add -erroff=wbadinitl,badargtypel2w,wbadasgl, I then get warnings that these are bad message tags! What is the correct tag to suppress these warnings?

[579 byte] By [barlock] at [2007-11-26 8:59:52]
# 1
I cannot duplicate your problem. That is, I copy/pasted your -erroff option and Sun Studio 11 did not object. What compiler are you using? Run the commandCC -Vand report what it says.
clamage45 at 2007-7-6 23:03:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
# ./CC -VCC: Sun C++ 5.5 2003/03/12# ./cc -Vcc: Sun C 5.5 2003/03/12
cbarlock at 2007-7-6 23:03:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
I cannot reproduce your problem with C++ 5.5 either. Are you trying to use C++ warning tag names with the C compiler? That won't work -- you need to use the tag names reported by the C compiler.
clamage45 at 2007-7-6 23:03:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
Bingo! I set the -erroff tag on a macro in our make files that affected both the C and C++ compilers. Thanks for sticking with me on this one!
cbarlock at 2007-7-6 23:03:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...