
Il giorno 12/set/2009, alle ore 01.46, Emil Dotchevski <emildotchevski@gmail.com
ha scritto:
On Fri, Sep 11, 2009 at 4:40 PM, Steven Watanabe <watanabesj@gmail.com> wrote:
AMDG
Emil Dotchevski wrote:
Well umm I'm not sure it's helpful at all then. It would be nice to be able to pass to the compiler a list of paths it should consider "3rd-party" and not warn unless the warning depends on user constructs, which I guess fits your statement that it handles templates okay. But maybe that's problematic for the same reasons pragma once is.
You can use -isystem instead of -I.
Could someone test this with Boost, that is, could someone confirm that using this approach gets rid of (only) the unwanted warnings?
Fwiw, I usually never see warnings from boost code because it comes installed from my os, a Linux distro, in /usr/include which gcc implicitly treats as -isystem. -- Gpd Inviato da iPhone