Skip to content

Commit

Permalink
Remove throwing code in no-throw function and fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Feb 5, 2018
1 parent 9ef723d commit 6dd1504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ncrystal_core/include/NCrystal/NCRCBase.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
////////////////////////////////////////////////////////////////////////////////

#include "NCrystal/NCException.hh"
#include <cassert>

namespace NCrystal {

Expand All @@ -44,7 +45,7 @@ namespace NCrystal {

void unrefNoDelete() const throw()
{
nc_assert(m_refCount>0);
assert(m_refCount>0);//not nc_assert, since it can throw.
--m_refCount;
}

Expand Down

0 comments on commit 6dd1504

Please sign in to comment.