Haojian Zhuang
dde858b9a2
fix issues reported by cppcheck
...
Run command "make clean cppcheck".
---- static analyzer - cppcheck ----
cppcheck . --force --enable=warning,portability,performance,style --error-exitcode=1 > /dev/null
cli/xsum_os_specific.c:220:9: style: The scope of the variable 'ret' can be reduced. [variableScope]
int ret;
^
cli/xsum_sanity_check.c:571:19: style: Condition 'len>0' is always true [knownConditionTrueFalse]
} else if (len>0) {
^
cli/xsum_sanity_check.c:569:13: note: Assuming that condition 'len==0' is not redundant
if (len == 0) {
^
cli/xsum_sanity_check.c:571:19: note: Condition 'len>0' is always true
} else if (len>0) {
^
tests/bench/benchHash.c:112:55: error: Uninitialized variables: result.internal_never_ever_use_directly, result.error_result_never_ever_use_directly, result.error_tag_never_ever_use_directly [uninitvar]
BMK_runTime_t const runTime = BMK_extract_runTime(result);
^
tests/bench/benchHash.c:107:12: note: Assuming condition is false
while (!BMK_isCompleted_TimedFn(txf)) {
^
tests/bench/benchHash.c:107:12: note: Assuming condition is false
while (!BMK_isCompleted_TimedFn(txf)) {
^
tests/bench/benchHash.c:107:12: note: Assuming condition is false
while (!BMK_isCompleted_TimedFn(txf)) {
^
tests/bench/benchHash.c:112:55: note: Uninitialized variables: result.internal_never_ever_use_directly, result.error_result_never_ever_use_directly, result.error_tag_never_ever_use_directly
BMK_runTime_t const runTime = BMK_extract_runTime(result);
^
tests/bench/benchfn.c:95:12: error: Uninitialized variable: outcome.error_result_never_ever_use_directly [uninitvar]
return outcome;
^
tests/collisions/main.c:209:14: style: Same expression on both sides of '<='. [duplicateExpression]
assert(m <= m);
^
make: *** [Makefile:387: cppcheck] Error 1
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org >
2022-10-19 13:10:12 +08:00
Yann Collet
f035303b8a
updated copyright years
2021-12-08 11:04:22 -08:00
easyaspi314 (Devin)
c994f5c9ef
Fix copyright years
...
- Replace '-present' with '-2020' (fixes #329 )
- Use correct format: Copyright (C) <year> <name of author>
- Fix some obviously incorrect years from copy/paste i.e. avoid time travel
2020-03-08 21:28:43 -04:00
Yann Collet
ff5df558b7
changed xxhash.com links to https
2020-03-04 18:36:13 -08:00
easyaspi314 (Devin)
9eb91a3b53
Let the Great Typo Hunt commence!
...
Work in progress.
- Fix many spelling/grammar issues, primarily in comments
- Remove most spaces before punctuation
- Update XXH3 comment
- Wrap most comments to 80 columns
- Unify most comments to use the same style
- Use hexadecimal in the xxhash spec
- Update help messages to better match POSIX/GNU conventions
- Use HTML escapes in README.md to avoid UTF-8
- Mark outdated benchmark/scores
2020-03-02 15:20:49 -05:00
Yann Collet
9e8468459f
updated license
...
test tools are GPLv2
2020-03-01 14:27:29 -08:00
Yann Collet
f083d6ed4a
added make help target
...
fixed minor static analyzer warnings (cppcheck)
2019-05-03 10:14:42 -07:00
Yann Collet
feea6cbca4
added project tests/benchHash
...
designed for external integration.
2019-03-19 15:56:00 -07:00