Skip to content

strange warning in micromamba CI

The following discussion from !31 (merged) should be addressed:

@lmoureau started a discussion: (+1 comment)

> Strange warning in micromamba:
> ```
> In static member function 'static constexpr _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const float; _Up = float; bool _IsMove = false]',
>     inlined from 'constexpr _OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const float*; _OI = float*]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_algobase.h:501:30,
>     inlined from 'constexpr _OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const float*; _OI = float*]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_algobase.h:528:42,
>     inlined from 'constexpr _OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = const float*; _OI = float*]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_algobase.h:535:31,
>     inlined from 'constexpr _OI std::copy(_II, _II, _OI) [with _II = const float*; _OI = float*]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_algobase.h:626:7,
>     inlined from 'static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const float*; _ForwardIterator = float*]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_uninitialized.h:147:27,
>     inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const float*; _ForwardIterator = float*]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_uninitialized.h:185:15,
>     inlined from 'constexpr _ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = const float*; _ForwardIterator = float*; _Tp = float]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_uninitialized.h:372:37,
>     inlined from 'constexpr void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = const float*; _Tp = float; _Alloc = std::allocator<float>]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/vector.tcc:339:35,
>     inlined from 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = float; _Alloc = std::allocator<float>]' at /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_vector.h:787:21,
>     inlined from 'void Darwin::Physics::example02(const std::vector<std::filesystem::__cxx11::path>&, const std::filesystem::__cxx11::path&, const boost::property_tree::ptree&, int, Darwin::Tools::Slice) [with bool DARWIN_TEST_EXCEPTIONS = false]' at /builds/cms-analysis/general/DasAnalysisSystem/gitlab-profile/Darwin/test/example02.cc:70:24:
> /root/micromamba/envs/DAS/lib/gcc/x86_64-conda-linux-gnu/12.4.0/include/c++/bits/stl_algobase.h:434:30: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' reading between 5 and 9223372036854775807 bytes from a region of size 4 [-Wstringop-overread]
>   434 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
>       |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /builds/cms-analysis/general/DasAnalysisSystem/gitlab-profile/Darwin/test/example02.cc: In function 'void Darwin::Physics::example02(const std::vector<std::filesystem::__cxx11::path>&, const std::filesystem::__cxx11::path&, const boost::property_tree::ptree&, int, Darwin::Tools::Slice) [with bool DARWIN_TEST_EXCEPTIONS = false]':
> /builds/cms-analysis/general/DasAnalysisSystem/gitlab-profile/Darwin/test/example02.cc:70:24: note: at offset [0, 3] into source object '<anonymous>' of size 4
>    70 |             rec.scales = {1.1}; // nominal
>       |             ~~~~~~~~~~~^~~~~~~
> ```