Skip to content
Commit f30d44f3 authored by Poyo VL's avatar Poyo VL Committed by Joel Becker
Browse files

When I tried to compile I got the following warning:


fs/ocfs2/slot_map.c: In function ‘ocfs2_init_slot_info’:
fs/ocfs2/slot_map.c:360: warning: ‘bytes’ may be used uninitialized in this function
fs/ocfs2/slot_map.c:360: note: ‘bytes’ was declared here
Compiler: gcc version 4.4.3 (GCC) on Mandriva
I'm not sure why this warning occurs, I think compiler don't know that variable
"bytes" is initialized when it is sent by reference to
ocfs2_slot_map_physical_size and it throws that ugly warning.
However, a simple initialization of "bytes" variable with 0 will fix it.

Signed-off-by: default avatarIonut Gabriel Popescu <poyo_vl@yahoo.com>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 9b5cd10e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment