Removing false positives when warning whenever a variable is unused aside from its declaration