diff options
author | Poyo VL <poyo_vl@yahoo.com> | 2010-10-11 13:45:52 -0700 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-10-11 13:45:52 -0700 |
commit | f30d44f3e54a94e037da7a71d714b585dab28d9e (patch) | |
tree | e86b1237a16d85661afcb4619d68d038c1dfdb1a /scripts/module-common.lds | |
parent | 9b5cd10e4c14a1a642076ace6a73be3d33c91fb6 (diff) | |
download | blackbird-op-linux-f30d44f3e54a94e037da7a71d714b585dab28d9e.tar.gz blackbird-op-linux-f30d44f3e54a94e037da7a71d714b585dab28d9e.zip |
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: Ionut Gabriel Popescu <poyo_vl@yahoo.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'scripts/module-common.lds')
0 files changed, 0 insertions, 0 deletions