All warnings
Assert instead of dumb check
Variable ‘chunk_size’ set but not used
Comparison between signed and unsigned integer
fix: in/outfile may be used uninitialized
Fix for uniformity