[Cluster-devel] [PATCH] GFS2: Avoid uninitialized variable warning (reprise)

Bob Peterson rpeterso at redhat.com
Thu May 26 12:37:08 UTC 2016


----- Original Message -----
| Commit 67893f12e attempted to fix these warnings:
| 
| fs/gfs2/dir.c: In function 'get_first_leaf':
| fs/gfs2/dir.c:802:9: warning: 'leaf_no' may be used uninitialized in this
| function [-Wmaybe-uninitialized]
| fs/gfs2/dir.c: In function 'dir_split_leaf.isra.26':
| fs/gfs2/dir.c:1021:8: warning: 'leaf_no' may be used uninitialized in this
| function [-Wmaybe-uninitialized]
| 
| but they persisted. Fix them once and for all by initializing leaf_no.
| 
| Signed-off-by: Andrew Price <anprice at redhat.com>

ACK

Bob Peterson




More information about the Cluster-devel mailing list