Commits
Kir Kolyshkin authored d2df1b55181
Fix a (bogus?) compiler warning When trying to compile with -O2 (gcc 4.7.0, Fedora 17) I get the following warning (which I believe is bogus): balloon.c: In function ‘do_ploop_discard’: balloon.c:888:7: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] balloon.c:808:10: note: ‘ret’ was declared here Note that gcc tells that * the function is do_ploop_discard() * the location of the 'ret' declaration (line 808) is in ploop_trim() * the location of the 'ret' usage (line 888) is in __ploop_discard() which, to my taste, is absolutely fabulous. Initializing ret in ploop_trim() helps. Signed-off-by: Kir Kolyshkin <kir@openvz.org>