diff options
author | Yann Collet <cyan@fb.com> | 2018-09-18 23:52:02 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-09-18 23:52:02 (GMT) |
commit | 5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c (patch) | |
tree | 39084e05bdfd5f391d229b7ffff79ada08378d97 /contrib | |
parent | 697bd904b256e9927b65d23e187adb5dddf39399 (diff) | |
download | lz4-5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c.zip lz4-5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c.tar.gz lz4-5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c.tar.bz2 |
added cppcheck
as Makefile target and Travis CI test.
Fixed last cppcheck warnings in tests and examples
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gen_manual/gen_manual.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gen_manual/gen_manual.cpp b/contrib/gen_manual/gen_manual.cpp index e12273f..bedef94 100644 --- a/contrib/gen_manual/gen_manual.cpp +++ b/contrib/gen_manual/gen_manual.cpp @@ -180,9 +180,9 @@ int main(int argc, char *argv[]) { if (!comments.empty()) comments[comments.size()-1] = comments[comments.size()-1].substr(0, comments[comments.size()-1].find("*/")); for (l=0; l<comments.size(); l++) { - if (comments[l].find(" *") == 0) + if (comments[l].compare(0, 2, " *") == 0) comments[l] = comments[l].substr(2); - else if (comments[l].find(" *") == 0) + else if (comments[l].compare(0, 3, " *") == 0) comments[l] = comments[l].substr(3); trim(comments[l], "*-="); } |