Skip to content

Suppress warnings #1861

Closed
Closed
@laindow

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.

Metadata

Assignees

No one assigned

    Labels

    solution: invalidthe issue is not related to the librarysolution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions