[Boost.Build v2] how to disable specific warnings on gcc
If I want to disable a specific warning on gcc (3.4.2, mingw) and use -Wall at the same time then on the gcc commnad line the -Wall option must precede the option disabling the specific warning. E.g. gcc -Wno-non-virtual-dtor -Wall main.cxx ignores the '-Wno-non-virtual-dtor' option, whereas gcc -Wall -Wno-non-virtual-dtor main.cxx works as expected. My problem is that I can't achieve the correct option order with Boost.Build v2 as the -Wall is used by default and the disabling option is always put before it. I tried to specify it in the toolset configuration: using gcc : : : <cxxflags>-Wno-non-virtual-dtor ; and also putting <toolset>gcc:<cxxflags>-Wno-non-virtual-dtor ; into project's requirements but neither works. Please, could anyone help me out with this? -- Jarda
participants (1)
-
Jaroslav Gresula