[fix] removed issues pointed via compilation with -pedantic

I think we should add -pedantic to our compilation flag in debug/release