[ci] turn on pedantic flag and reduce unwanted warnings