My compiler gives me an unused variable warning (list) at this section of code:
q3Box* node = m_boxes;
q3Box* list = m_boxes;
bool found = false;
if ( node == box )
{
list = node->next;
found = true;
}
Indeed, the list variable is assigned to, but never used. It seems to me that in this particular case (where the head of the m_boxes list is the box to be removed) m_boxes isn't updated to point to node->next. I'm not convinced I've fully groked the code yet though, I just saw this in passing.
My compiler gives me an unused variable warning (
list
) at this section of code:Indeed, the
list
variable is assigned to, but never used. It seems to me that in this particular case (where the head of them_boxes
list is the box to be removed)m_boxes
isn't updated to point tonode->next
. I'm not convinced I've fully groked the code yet though, I just saw this in passing.