Project

General

Profile

Actions

Bug #2290

closed

NameTree: unused-but-set-variable warnings

Added by Alex Afanasyev almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Tables
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
0.50 h

Description

When compiled in non-debug mode:

../daemon/table/name-tree.cpp: In member function ‘bool nfd::NameTree::eraseEntryIfEmpty(std::shared_ptr<nfd::name_tree::Entry>)’:
../daemon/table/name-tree.cpp:329:16: warning: variable ‘isFound’ set but not used [-Wunused-but-set-variable]
../daemon/table/name-tree.cpp: In member function ‘nfd::NameTree::const_iterator nfd::NameTree::const_iterator::operator++()’:
../daemon/table/name-tree.cpp:597:12: warning: variable ‘isFound’ set but not used [-Wunused-but-set-variable]
../daemon/table/name-tree.cpp:694:20: warning: variable ‘isFound’ set but not used [-Wunused-but-set-variable]
Actions

Also available in: Atom PDF