diff options
author | Christian Hesse <mail@eworm.de> | 2014-06-05 10:13:39 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-11-07 18:14:38 +0100 |
commit | 5676e94ad8be150e6ba1606bb29c370b27df4b83 (patch) | |
tree | 7150dd09deeb3f5f2abc721e911ed0c67b83dc63 /cmds-send.c | |
parent | 3d0b0111df10fadcf7928ec628c306863d0c2d5a (diff) |
btrfs-progs: fix compiler warning
gcc 4.9.0 gives warnings about possibly uninitialized values when
compiling with function inlining and optimization level two enabled
(CFLAGS="-finline-functions -O2").
Initializing the values fixes the warning. Hope this is correct.
Signed-off-by: Christian Hesse <mail@eworm.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-send.c')
-rw-r--r-- | cmds-send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-send.c b/cmds-send.c index 7141c073..b17b5e2c 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -427,7 +427,7 @@ int cmd_send(int argc, char **argv) u32 i; char *mount_root = NULL; char *snapshot_parent = NULL; - u64 root_id; + u64 root_id = 0; u64 parent_root_id = 0; int full_send = 1; int new_end_cmd_semantic = 0; |