1.6.fix warnings

The code compiles now with -w Ae and -warn-error A.
Just `~overwrite` works too and is cleaner