On May 20, 2013, at 7:41 PM, Liu Yuan <namei.unix at gmail.com> wrote: > On 05/20/2013 03:50 PM, Kai Zhang wrote: >> Command example: >> *Usage* >> Save all readonly objects to local path. >> "tag" is used to describe a snapshot. >> $collie cluster snapshot save tag /localpath >> >> List all cluster snapshot saved in local path. >> $collie cluster snapshot list /localpath >> >> Load a snapshot to a cluster. >> This will format cluster firstly. >> User can use tag or index to select a snapshot. >> $collie cluster snapshot load tag|idx /localpath > > My gcc complains, > > cluster.c: In function ‘save_snapshot’: > cluster.c:285:11: warning: variable ‘idx’ set but not used > [-Wunused-but-set-variable] > CCLD collie > My gcc (4.4.7) didn't show this warning. What is your gcc's version? I would like to upgrade and try again. Thanks, Kyle |