-
[tests] Fix incorrect memory_cleanse(…) call in crypto_tests.cpp
chKey and chIV are pointers, not arrays :-) Probably the result of copy-pasting of old code which was operating on arrays instead of pointers.
-
Avoid redundant redeclaration of GetWarnings(const string&)
std::string GetWarnings(const std::string& strFor) is declared in warnings.h and defined in warnings.cpp.
-
Fix typo: "conditon" → "condition"
Typo introduced in commit 439c4e8.
-
Remove unused variable int64_t nEnd
Last use of nEnd removed in commit 1fc8c3d.
practicalswift committedJul 18, 2017
-
Fix incorrect Doxygen tag (@ince → @since). Make Doxygen parameter na…
…mes match actual parameter names.
-
-
-
Avoid static analyzer warnings regarding uninitialized arguments
Avoid static analyzer warnings regarding "Function call argument is a pointer to uninitialized value" in cases where we are intentionally using such arguments. This is achieved by using ... `f(b.begin(), b.end())` (`std::array<char, N>`) ... instead of ... `f(b, b + N)` (`char b[N]`) Rationale: * Reduce false positives by guiding static analyzers regarding our intentions. Before this commit: ``` $ clang-tidy-3.5 -checks=* src/bench/base58.cpp bench/base58.cpp:23:9: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage] EncodeBase58(b, b + 32); ^ $ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp bench/verify_script.cpp:59:5: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage] key.Set(vchKey, vchKey + 32, false); ^ $ ``` After this commit: ``` $ clang-tidy-3.5 -checks=* src/bench/base58.cpp $ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp $ ```
-
Avoid printing incorrect block indexing time due to uninitialized var…
…iable Fixes: init.cpp: In function ‘bool AppInitMain(boost::thread_group&, CScheduler&)’: init.cpp:1499:56: warning: ‘nStart’ may be used uninitialized in this function [-Wmaybe-uninitialized] LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart); ^
-
Use the override specifier (C++11) where we expect to be overriding t…
…he virtual function of a base class
-
Remove obsolete _MSC_VER check
* MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005) * C++11 is supported since MSVC 2010 * Compiling without C++11 support is no longer possible
-
Remove unused constant MEMPOOL_GD_VERSION
practicalswift committedJun 8, 2017 -
[tests] Remove accidental trailing semicolon
practicalswift committedJun 8, 2017 -
[tests] Remove unused function InsecureRandBytes(size_t len)
practicalswift committedJun 8, 2017
-
-
[tests] Use FastRandomContext instead of boost::random::{mt19937,unif…
…orm_int_distribution}
-
Use list initialization (C++11) for maps/vectors instead of boost::as…
…sign::map_list_of/list_of
-
[trivial] Fix typo: "occurrences" (misspelled as "occurrances")