Project

General

Profile

Actions

Bug #4721

closed

Debug build fails with clang-5 and earlier [-Wmissing-braces]

Added by Davide Pesavento over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

In clang versions before 6.0, the -Wmissing-braces warning can generate false positives and therefore break ndn-cxx compilation in debug mode (due to -Werror). See upstream bug https://bugs.llvm.org/show_bug.cgi?id=21629

[ 94/378] Compiling src/net/detail/netlink-socket.cpp
../src/net/detail/netlink-socket.cpp:423:5: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    boost::asio::buffer(hdr.get(), sizeof(GenlRequestHeader)),
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    {
1 error generated.
Actions

Also available in: Atom PDF