From: Alex Zhuravlev Date: Tue, 16 Apr 2013 15:21:13 +0000 (+0400) Subject: LU-3179 fids: fix compilation error with gcc 4.7.2 X-Git-Tag: 2.3.65~13 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=f2150a414ee84676a2e22809555b3b29898d8d12;p=fs%2Flustre-release.git LU-3179 fids: fix compilation error with gcc 4.7.2 initialize oi.oi.oi_id which gcc 4.7.2 is afraid of being used later. Signed-off-by: Alex Zhuravlev Change-Id: Iaeb6eac01340d80786463efe67ff74479017f074 Reviewed-on: http://review.whamcloud.com/6064 Tested-by: Hudson Tested-by: Maloo Reviewed-by: wangdi Reviewed-by: Bob Glossman Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/include/lustre_fid.h b/lustre/include/lustre_fid.h index 19c4602..3c74340 100644 --- a/lustre/include/lustre_fid.h +++ b/lustre/include/lustre_fid.h @@ -624,6 +624,7 @@ static inline void ost_fid_build_resid(const struct lu_fid *fid, { if (fid_is_mdt0(fid) || fid_is_idif(fid)) { struct ost_id oi; + oi.oi.oi_id = 0; /* gcc 4.7.2 complains otherwise */ if (fid_to_ostid(fid, &oi) != 0) return; ostid_build_res_name(&oi, resname);