Skip to content
Snippets Groups Projects
Commit 12574cf1 authored by Marti Bolivar's avatar Marti Bolivar
Browse files

Fix up unused variable/value warnings.


Generic changes:

- Genuinely unused variables (-Wunused-variable): delete
  them. Sometimes add a comment if the variable is for an extension of
  the code that isn't done yet.

- Variables that became unused due to commented-out
  code (-Wunused-variable): comment out their definitions. Dirty, but
  that's because commenting out code instead of deleting it is
  dirty.

  Many of these are due to commented-out printlines that should have
  been log messages that only get emitted at high verbosity level.

Specific changes:

- SpikeObject.cpp (-Wunused-value): move initialization of loop
  variable into first for loop clause to silence the warning.

Signed-off-by: default avatarMarti Bolivar <mbolivar@leaflabs.com>
parent 8b27dbe9
Branches
Tags
No related merge requests found
Showing
with 26 additions and 37 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment