From: Alexander Grund (alexander.grund_at_[hidden])
Date: 2019-12-15 13:21:31
I want to build at least the tests but better also the library sources itself with warnings enabled and warnings-as-errors to avoid regressions.
>From BoostAssert I found the following snipped added to the top of test/Jamfile.v2:
project : requirements
Further down I have a dependency on BoostFilesystem like:
run test_stdio.cpp : : : <library>/boost/filesystem//boost_filesystem ;
But now the build of BoostFilesystem fails:
libs/filesystem/src/directory.cpp:217:48: error: unused parameter 'buffer' [-Werror=unused-parameter]
Is there any way to restrict the warnings to my project only? Or at least the warnings-as-errors option?
Is there a way to set warnings-as-errors via b2 command only for this library? This would avoid putting it in the Jamfile which could affect end-users, but having it on CI is actually enough.