Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdrgn: binary_search_tree: use a slightly different terminating loo…
…p hack Clang 16 warns that: ../../libdrgn/memory_reader.c:37:1: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] DEFINE_BINARY_SEARCH_TREE_FUNCTIONS(drgn_memory_segment_tree, node, ^ ../../libdrgn/binary_search_tree.h:454:7: note: expanded from macro 'DEFINE_BINARY_SEARCH_TREE_FUNCTIONS' long i; \ ^ 1 error generated. Use a slightly different hack that uses i but generates the same code (tested on GCC 13.2.1, GCC 8.5.0, Clang 16.0.6, and Clang 15.0.7). Signed-off-by: Omar Sandoval <[email protected]>
- Loading branch information