Description[gcc 4.x] Initialize web_port_index to 0 to fix build error while using GCC 4.x toolchain.
Without the initialization, GCC throws the below error:
error: ‘web_port_index’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
This looks like a gcc bug as we are handling both the types in the switch-case block.
R=agoode@chromium.org, toyoshim@chromium.org
Committed: https://crrev.com/5f288f453ba0eac7f7812041f6efb43b30448b56
Cr-Commit-Position: refs/heads/master@{#325191}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|