fix warning->error on linux