Skip to content

removing unused local variable

unused unused local variable

Implemented feature

issue#11

Description

unused local variable The following local variable buf seems not to be used.

  • ros_observer.cpp
int main(int argc, char* argv[])
{
  sig_handler_init();

  struct tm localtime;
  char buf[50];
  auto now = std::chrono::system_clock::now();

It should be removed for saving memories. (It may already have been removed by the optimizer of gcc.)

Merge request reports

Loading