#============================================================================== # Copyright (c) 2021 Nikita Kniazev # # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #============================================================================== import feature ; if ! [ feature.valid known-warnings ] { feature.feature known-warnings : hide show : incidental propagated ; } local 9.0-14.0 = 9.0 10.0 11.0 12.0 14.0 ; project spirit : requirements # Warnings that we have not managed to fix yet hide,msvc:-wd4244 # conversion from 'T' to 'U', possible loss of data hide,msvc:-wd4365 # conversion from 'T' to 'U', signed/unsigned mismatch hide,msvc:-wd4459 # declaration of 'varname' hides global declaration # Enable additional useful warnings extra,gcc:-Wshadow-local extra,clang-linux:-Wshadow-field-in-constructor extra,clang-linux:-Wshadow-uncaptured-local extra,clang-linux:-Wundefined-reinterpret-cast extra,msvc:-w44555 # result of expression not used # Broken or very high false-positive rate hide,gcc:-Wno-maybe-uninitialized # Too many pesky false-positives hide,msvc-$(9.0-14.0):-wd4100 # unreferenced formal parameter hide,msvc-$(9.0-14.0):-wd4512 # assignment operator could not be generated hide,msvc-$(9.0-14.0):-wd4714 # function 'x' marked as __forceinline not inlined ;