Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize loop variable of
ccan_list_for_each
On platforms where `typeof` is unsupported, `ccan_container_off_var` calculates the offset of member by pointer subtraction. Although this will result in the compile-time invariant value regardless the pointer value, the loop variable will be used before assignment and may cause an using uninitialized variable warning.
- Loading branch information