Thomas-Tsai/partclone — pull request #25 by okkez (2012-11-13 08:17:16+00:00)
Title: Suppress warnings reported by gcc for extfsclone.[ch]

I fixed warnings reported by gcc for extfsclone.[ch]

````
extfsclone.h:15:13: warning: ‘fs_open’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.h:18:13: warning: ‘fs_close’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.h:21:12: warning: ‘block_size’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.h:24:27: warning: ‘device_size’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.h:27:27: warning: ‘block_count’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.h:30:27: warning: ‘get_used_blocks’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.h:36:12: warning: ‘test_extfs_type’ declared ‘static’ but never defined [-Wunused-function]
extfsclone.c:193:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
extfsclone.c: In function ‘device_size’:
extfsclone.c:87:5: warning: pointer targets in passing argument 3 of ‘ext2fs_get_device_size’ differ in signedness [-Wpointer-sign]
In file included from extfsclone.c:17:0:
/usr/include/ext2fs/ext2fs.h:1196:18: note: expected ‘blk_t *’ but argument is of type ‘int *’
````

````
$ ./configure --enable-extfs CFLAGS="-std=gnu99 -Wall"
$ make 2> make.log
````

Some warnings are remained:

````
extfsclone.c: In function ‘initial_image_hdr’:
extfsclone.c:228:9: warning: variable ‘fs_type’ set but not used [-Wunused-but-set-variable]
extfsclone.c: At top level:
extfsclone.c:84:27: warning: ‘device_size’ defined but not used [-Wunused-function]
````