Later versions of GCC complain that the value of ftruncate is unused

Why? Because GCC is fucking retarded.