Project

General

Profile

Actions

Bug #3358

closed

Clang's infinite-recursion warning/error from Boost 1.55 (default on FreeBSD)

Added by Alex Afanasyev over 8 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
12/04/2015
Due date:
% Done:

100%

Estimated time:
Tags:

Description

clang 3.7 generates a warning (in debug mode: error):

/usr/local/include/boost/asio/ip/resolver_query_base.hpp:96:3: warning: all paths through this function will call itself [-Winfinite-recursion]

This is a valid complaint, which has been addressed in boost version >= 1.55 (https://svn.boost.org/trac/boost/ticket/9548). However, I would still propose to not treat this warning as error in debug builds.

This applies to ndn-cxx, NFD, NLSR, and may be other projects.

Actions #1

Updated by Junxiao Shi over 8 years ago

Can we mark the problematic Boost header as "system library" to suppress this warning, instead of changing compiler flags?

Actions #2

Updated by Alex Afanasyev over 8 years ago

We can, just a little more complicated to implement.

Actions #3

Updated by Alex Afanasyev over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Similar patch needs to be applied to NFD and other code bases.

Actions #4

Updated by Junxiao Shi over 7 years ago

  • Tracker changed from Task to Bug
Actions #5

Updated by Alex Afanasyev about 7 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100
Actions #6

Updated by Davide Pesavento 6 months ago

  • Tags set to FreeBSD
Actions

Also available in: Atom PDF