range-v3 icon indicating copy to clipboard operation
range-v3 copied to clipboard

Need to turn off unsafe buffer warning.

Open VictorEijkhout opened this issue 2 years ago • 3 comments

rangev3-0.12.0/include/meta/meta.hpp:2277:63: error: 'first'
is an unsafe pointer used for buffer access [-Werror,-Wunsafe-buffer-usage]
        constexpr std::size_t find_index_i_(bool const *const first, bool const *const last,
                                            ~~~~~~~~~~~~~~~~~~^~~~~

My attempt to turn off warning-as-error failed. Cmake option -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF but there is still a -Werror on the compile line.

VictorEijkhout avatar Jun 09 '23 23:06 VictorEijkhout

U need to install cmake version >= 3.24

Paulo456 avatar Oct 03 '24 20:10 Paulo456

U need to install cmake version >= 3.24

This has nothing to do with the CMake version. It still fails on CMake 3.30.2 with -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF because the CMakeLists manually enables -Werror by default.

mattyoung101 avatar Nov 19 '24 05:11 mattyoung101

This can be somewhat fixed by passing cmake -DRANGES_HAS_WERROR=OFF, but it's still going to output a few thousand warnings.

mattyoung101 avatar Nov 19 '24 05:11 mattyoung101