
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Patrick Horgan Sent: Wednesday, January 19, 2011 12:12 AM To: boost@lists.boost.org Subject: Re: [boost] [Wiki] Changes in information about gcc warnings.
<snip>
As Paul noted, such details should be included in the Wiki so they won't be a surprise. I just added this to the wiki for pedantic:
*-pedantic*
This instructs GCC to consider the release version of C or C++ and to first issue all warnings required by that version of the standard, and second warn about the use of gcc extenstions to the language. This would, for instance warn about the use of /#ident/ since it is a gcc extension and is not in any of the standards. Using -pedantic makes it easier to write portable code, or at least to know when it is not. Best used with the /-std=xxxxx/ argument to the compiler, so that you know what version of the standard you're being compared to. Currently if /-std=xxxxx/ is not specified, it's as if you'd written /-std=gnu++98/. Much of boost uses facilities from more recent versions of the standard, so it might make more sense to explicitly specify /-std=c++0x/ or /-std=gnu++0x/. /-std=c++0x/ is most portable. See the page http://gcc.gnu.org/onlinedocs/gcc/Standards.html for more information.
What do you think?
Looks good to me (but I'm only a Microsofty ;-) Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com