Clean up some vestiges of fixed-size partial keys
Some checks failed
Tests / Release [gcc] total: 827, passed: 827
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / Release [gcc,aarch64] total: 826, passed: 826
Tests / Coverage total: 825, failed: 1, passed: 824
weaselab/conflict-set/pipeline/head There was a failure building this commit
Some checks failed
Tests / Release [gcc] total: 827, passed: 827
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / Release [gcc,aarch64] total: 826, passed: 826
Tests / Coverage total: 825, failed: 1, passed: 824
weaselab/conflict-set/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -92,12 +92,7 @@ if(NOT APPLE AND CMAKE_OBJCOPY)
|
|||||||
$<TARGET_FILE:${PROJECT_NAME}_static>)
|
$<TARGET_FILE:${PROJECT_NAME}_static>)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(TEST_FLAGS -Wall -Wextra -Wunreachable-code -UNDEBUG)
|
set(TEST_FLAGS -Wall -Wextra -Wunreachable-code -Wpedantic -UNDEBUG)
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
||||||
list(APPEND TEST_FLAGS -Wpedantic -Wno-gnu-anonymous-struct
|
|
||||||
-Wno-nested-anon-types)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
|
@@ -181,6 +181,9 @@ struct Node {
|
|||||||
|
|
||||||
Type type;
|
Type type;
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
// Leaving this uninitialized is intentional and necessary to expect asserts
|
||||||
|
// to pass. Basically it needs to be preserved when going to the free list and
|
||||||
|
// back.
|
||||||
int32_t partialKeyCapacity;
|
int32_t partialKeyCapacity;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -325,6 +328,8 @@ uint8_t *Node::partialKey() {
|
|||||||
case Type::Node256:
|
case Type::Node256:
|
||||||
return ((Node256 *)this)->partialKey();
|
return ((Node256 *)this)->partialKey();
|
||||||
}
|
}
|
||||||
|
__builtin_unreachable();
|
||||||
|
; // GCOVR_EXCL_LINE
|
||||||
}
|
}
|
||||||
|
|
||||||
struct NodeAllocators {
|
struct NodeAllocators {
|
||||||
|
Reference in New Issue
Block a user