When I run the Sun Workshop compiler to get the preprocessor output using -E, a warning is generated, for example:
$ CC -c -E runme.cxx > runme.i CC: Warning: "-E" redefines product from "object" to "source (stdout)" How can I suppress this warning? -errtags doesn't give it a tag name so it can't be suppressed with -erroff. The rationale behing this... I am using ccache which would work more efficiently when cacheing if I could use the preprocessed .i output as input to the compiler, but because of this warning, I have to run the full compile using the .cxx file as input. For those who are using ccache, it means the CCACHE_CPP2=1 environment variable needs setting. Details at http://ccache.samba.org/ccache-man.html William -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20081115/66cb6384/attachment.html>