Workaround 'tainted int used as loop bound' static analysis tool warning
authorIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 18:57:15 +0000 (21:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 18:57:15 +0000 (21:57 +0300)
commit1868a901034d3a606dd529dd9b9cab3433802bad
treea238e0510c6339590e8754a8a5c1d6d7076a7c62
parent9ec0f5f6c1853ff3e63546e0009b98aebb8ee546
Workaround 'tainted int used as loop bound' static analysis tool warning

No need to check upper bound of n here, so a dummy check is added.

* tests/test_cpp.cc (main) [LINT2]: Check upper bound of n local
variable (the check is actually dummy).
* tests/test_cpp.cc (main): Reformat code (which handles n variable).
tests/test_cpp.cc