title: Cppcheck does not output warnings when there exists a line: auto lambda = [](){};
body: <p>Here is a <a href="http://sscce.org/" rel="nofollow noreferrer">SSCCE</a> of <code>main.cpp</code>:</p>
  
  <pre><code>int main(int argc, char** argv) {
      float a;
      auto lambda = [](){};
      return 0;
  }
  </code></pre>
  
  <p>Running <code>cppcheck --enable-all --std=c++11 *.cpp</code> outputs:</p>
  
  <pre><code>Checking main.cpp ...
  </code></pre>
  
  <p>Removing <code>auto lambda = [](){};</code> makes cppcheck output the following:</p>
  
  <pre><code>Checkin main.cpp
  [main.cpp:3]: (style) Unused variable: a
  </code></pre>
  
  <p>as expected. Why does <code>auto lambda = [](){};</code> make Cppcheck go silent with respect to the unused variable message? This happens with Cppcheck 1.82.</p>