Message ID | 1475879772-29458-3-git-send-email-jgunthorpe@obsidianresearch.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/ibacm/prov/acmp/src/acmp.c b/ibacm/prov/acmp/src/acmp.c index 3f590d0b51f3..d70501aff8e8 100644 --- a/ibacm/prov/acmp/src/acmp.c +++ b/ibacm/prov/acmp/src/acmp.c @@ -2118,7 +2118,7 @@ static void acmp_parse_osm_fullv1_lid2guid(FILE *f, uint64_t *lid2guid) static int acmp_parse_osm_fullv1_paths(FILE *f, uint64_t *lid2guid, struct acmp_ep *ep) { union ibv_gid sgid, dgid; - struct ibv_port_attr attr = { 0 }; + struct ibv_port_attr attr = {}; struct acmp_dest *dest; char s[128]; char *p, *ptr, *p_guid, *p_lid;
The canonical way to zero fill a struct in this tree is {}. Fixes: 0db49b8b3e8f ("Avoid clang 3.6 warning -Wmissing-field-initializers") Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> --- ibacm/prov/acmp/src/acmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)