Wrap in diagnostic pragmas to avoid warnings in new projects