Boost logo

Boost :

Subject: Re: [boost] Official warnings policy?
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2009-11-11 08:49:50


On Wednesday 11 November 2009, you wrote:
>> #pragma GCC diagnostic ignored "-Wdeprecated-declarations"

> That doesn't quite work, how do you know that the user
> wants -Wdeprecated-declarations to be set to "warning" after the
> include?

It seems I was too fast again. I've tried this only in .cpp files for
one (annyoing) 3rdparty include and it worked. I just wanted to point
out that gcc has some #pragma warning control, albeit not so
sophisticated as msvc.

> Could be the user has disabled that one on the command
> line, in which case if we turn it back on, that's as annoying for
> the end user as warnings from Boost!

Full agreement here

> There was a time when some
> MSVC std lib headers behaved like that, and believe me it was
> *seriously* annoying :-(

I think I had those issues, too. yes, no fun.

I really prefer "real" fixes. It took a lot of patience to introduce at
least a "low warning" policy at work, but it was worth it.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk