build: fix or suppress warnings

- activated "treat warnings as errors"
It's a `declaration` type warning. The compiler refers to whole class declared from line 74