Skip to content
  • Nobuyoshi Nakada's avatar
    61289d94
    Initialize loop variable of `ccan_list_for_each` · 61289d94
    Nobuyoshi Nakada authored
    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.
    61289d94
    Initialize loop variable of `ccan_list_for_each`
    Nobuyoshi Nakada authored
    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