At Thu, 23 May 2013 14:52:32 +0800, Liu Yuan wrote: > > sheep.c:133:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] > ... > cluster/shepherd.c:278:7: warning: variable ‘removed’ set but not used [-Wunused-but-set-variable] > ... > cluster.c:279:8: warning: ignoring return value of ‘strtol’, declared with attribute warn_unused_result [-Wunused-result] > > Fix uninitialized_var() and use it to keep GCC happy. > > Signed-off-by: Liu Yuan <namei.unix at gmail.com> > --- > collie/cluster.c | 4 ++-- > include/util.h | 2 +- > sheep/cluster/shepherd.c | 3 ++- > sheep/sheep.c | 2 +- > 4 files changed, 6 insertions(+), 5 deletions(-) Applied this one, thanks! Kazutaka |