replace clang++ pragma diagnostic

replaced clang++ pragma diagnostic (thanks to Peter Caspers)