mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
Bug fix/clang-tidy-performance (#300)
Various clang-tidy-performance fixes: * noexcept * performance-noexcept-swap * performance * performance-move-const-arg * performance-unnecessary-value-param * performance-inefficient-vector-operation * performance-no-int-to-ptr * add performance * performance-inefficient-string-concatenation * clang-analyzer-deadcode.DeadStores * performance-inefficient-vector-operation * clang-analyzer-core.NullDereference * clang-analyzer-core.UndefinedBinaryOperatorResult * clang-analyzer-core.CallAndMessage --------- Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ hs_database_t *get_huge(hs_database_t *db) {
|
||||
}
|
||||
|
||||
shmaddr = shmat(hsdb_shmid, nullptr, SHM_RND);
|
||||
if (shmaddr == (char *)-1) {
|
||||
if (shmaddr == (char *)-1) { //NOLINT (performance-no-int-to-ptr)
|
||||
perror("Shared memory attach failure");
|
||||
goto fini;
|
||||
}
|
||||
|
Reference in New Issue
Block a user