2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

Fix GCC -Wshadow-local and MSVC C4457

GCC bug reported https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100608

Fixes #676
This commit is contained in:
Nikita Kniazev
2021-05-16 00:13:11 +03:00
parent 0e15dd13bb
commit db8bdf3d71
10 changed files with 45 additions and 36 deletions

View File

@@ -413,6 +413,11 @@ jobs:
variant sanitize : <optimization>speed <debug-symbols>off <inlining>full
<runtime-debugging>off ;
# Enable additional warnings
toolset.flags gcc.compile OPTIONS <warnings>extra :
-Wshadow-local
: unchecked ;
# Ignore some warnings
feature.feature known-warnings : suppress : optional incidental propagated ;
toolset.flags gcc.compile OPTIONS <known-warnings>suppress :