}
if (print_min_size) {
- printf("Estimated minimum size of the filesystem: %lu\n",
+ printf("Estimated minimum size of the filesystem: %u\n",
calculate_minimum_resize_size(fs));
exit(0);
}
*/
blk_t calculate_minimum_resize_size(ext2_filsys fs)
{
- blk_t inode_count, blks_needed, groups, blk, data_blocks;
+ blk_t inode_count, blks_needed, groups, data_blocks;
blk_t grp, data_needed, last_start;
- int overhead = 0, old_group = -1, num_of_superblocks = 0;
+ int overhead = 0, num_of_superblocks = 0;
/*
* first figure out how many group descriptors we need to
}
}
-int main(int argc, char **argv)
+#ifdef __GNUC__
+#define ATTR(x) __attribute__(x)
+#else
+#define ATTR(x)
+#endif
+
+int main(int argc ATTR((unused)), char **argv ATTR((unused)))
{
do_test(stdin, stdout);
exit(0);