Bug #8399

sun_fc: in C++11 destructors default to noexcept

Added by Toomas Soome 10 days ago.

Status:In ProgressStart date:2017-06-15
Priority:NormalDue date:
Assignee:Toomas Soome% Done:

90%

Category:lib - userland libraries
Target version:-
Difficulty:Medium Tags:

Description

Build error with gcc 6:

../common/Handle.cc: In destructor 'Handle::~Handle()':
../common/Handle.cc:172:6: error: throw will always call terminate() [-Werror=terminate]
      throw;
      ^~~~~
../common/Handle.cc:172:6: note: in C++11 destructors default to noexcept
../common/Handle.cc:187:6: error: throw will always call terminate() [-Werror=terminate]
      throw;
      ^~~~~
../common/Handle.cc:187:6: note: in C++11 destructors default to noexcept
cc1plus: all warnings being treated as errors

Also available in: Atom