Description
Hello guys,
Could you give me a clue how to hide this kind of warnings ?
In file included from /usr/include/c++/6/vector:69:0,
from /tmp/tmp.t84kxtTjFo/jsonLib/single_include/nlohmann/json.hpp:49,
from /tmp/tmp.t84kxtTjFo/main.cpp:3:
/usr/include/c++/6/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/vector.tcc:75:70: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>*>’ will change in GCC 7.1
_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(this->_M_impl._M_finish));
I have a lot of "will change in GCC 7.1" warnings and it make hard to see real problems.
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
I set this parameters in CMakeLists but id doesn't work :(
Best regards,
Konstantin.