DescriptionFix some clang warnings with -Wmissing-braces in printing.
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/475b2e8fdde79348aaef7ffab71a283f4171a733
Cr-Commit-Position: refs/heads/master@{#337086}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|