Skip to content

Commit aec66c8

Browse files
committed
ifndef NDEBUG get_block_prev() and get_block_next()
ifndef NDEBUG get_block_prev() and get_block_next() since get_block_prev() and get_block_next() are used only in Debug build. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 9fc6aa3 commit aec66c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/provider/provider_coarse.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ static inline ravl_node_t *get_node_next(ravl_node_t *node) {
135135
return ravl_node_successor(node);
136136
}
137137

138+
#ifndef NDEBUG
138139
static block_t *get_block_prev(ravl_node_t *node) {
139140
ravl_node_t *ravl_prev = ravl_node_predecessor(node);
140141
if (!ravl_prev) {
@@ -152,6 +153,7 @@ static block_t *get_block_next(ravl_node_t *node) {
152153

153154
return get_node_block(ravl_next);
154155
}
156+
#endif /* NDEBUG */
155157

156158
static bool is_same_origin(struct ravl *upstream_blocks, block_t *block1,
157159
block_t *block2) {

0 commit comments

Comments
 (0)