]> git.ipfire.org Git - thirdparty/ccache.git/commit
Fix four minor cppcheck warnings 544/head
authorErik Johansson <erik@ejohansson.se>
Sun, 23 Feb 2020 20:56:59 +0000 (21:56 +0100)
committerErik Johansson <erik@ejohansson.se>
Sun, 23 Feb 2020 21:22:07 +0000 (22:22 +0100)
commiteb4db0faecad11d487dd78dabdf86bdcfb87c46d
treea8cfd7a5a74f4786e2bbf5754ccbbaa7a97cf1d2
parentb2b3af005e95fffdb04ce2cb98ec24feefa192ce
Fix four minor cppcheck warnings

- uninitvar:src/ccache.cpp:3422: Uninitialized variable: ctx
- redundantInitialization:src/legacy_util.cpp:1067: Redundant initialization
  for 'q'. The initialized value is overwritten before it is read.
- constVariable:src/stats.cpp:429: Variable 'ctx' can be declared with const
- variableScope:src/Util.cpp:404: The scope of the variable 'right' can be
  reduced.
src/Util.cpp
src/ccache.cpp
src/legacy_util.cpp
src/stats.cpp