Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bf_lpm_trie: fix gcc warning (#1181)
This patch fixes the following compiler warning: ../src/bf_lpm_trie/bf_lpm_trie.c:167:56: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 167 | memmove(&branches->branches[idx], &branches->branches[idx + 1], size); | ^ ../src/bf_lpm_trie/bf_lpm_trie.c:152:7: note: 'idx' was declared here 152 | int idx; | ^ ../src/bf_lpm_trie/bf_lpm_trie.c:267:56: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 267 | memmove(&prefixes->prefixes[idx], &prefixes->prefixes[idx + 1], size); | ^ ../src/bf_lpm_trie/bf_lpm_trie.c:251:7: note: 'idx' was declared here Signed-off-by: Radostin Stoyanov <[email protected]>
- Loading branch information