build: fix or suppress warnings

- activated "treat warnings as errors"
Why have you moved the lines around?