DescriptionFix some clang warnings with -Wmissing-braces in base.
Clang warns if there are missing braces around a subobject
initializer. The most common idiom that triggers this is:
STRUCT s = {0};
if the first field of STRUCT is itself a struct. This can
be more simply written as:
STRUCT s = {};
which also prevents the warning from firing.
BUG=505297
Committed: https://crrev.com/e74809cbb56e2ad906e0fbca6f97935242d3ed5f
Cr-Commit-Position: refs/heads/master@{#337139}
Patch Set 1 #
Total comments: 7
Patch Set 2 : simplify #Patch Set 3 : Rebase #
Messages
Total messages: 19 (6 generated)
|