Project

General

Profile

Bug #4721

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

Added by Davide Pesavento over 2 years ago. Updated over 2 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.
#1

Updated by Davide Pesavento over 2 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
#2

Updated by Davide Pesavento over 2 years ago

  • Status changed from Code review to Closed

Also available in: Atom PDF