mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-06-06 08:58:15 +00:00
Ignore -Wdeprecated-declarations for bootstrap_create_service in
OnDemandServer.mm. BUG=crbug.com/137676 TEST=compiles Patch by Robert Sesek <rsesek@chromium.org> Review URL: https://breakpad.appspot.com/419002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@993 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
cd77197264
commit
5d8db68b51
|
@ -123,11 +123,14 @@ kern_return_t OnDemandServer::Initialize(const char *server_command,
|
||||||
|
|
||||||
strlcpy(service_name_, service_name, sizeof(service_name_));
|
strlcpy(service_name_, service_name, sizeof(service_name_));
|
||||||
|
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||||
// Create a service called service_name, and return send rights to
|
// Create a service called service_name, and return send rights to
|
||||||
// that port in service_port_.
|
// that port in service_port_.
|
||||||
kr = bootstrap_create_service(server_port_,
|
kr = bootstrap_create_service(server_port_,
|
||||||
const_cast<char*>(service_name),
|
const_cast<char*>(service_name),
|
||||||
&service_port_);
|
&service_port_);
|
||||||
|
#pragma clang diagnostic pop
|
||||||
if (kr != BOOTSTRAP_SUCCESS) {
|
if (kr != BOOTSTRAP_SUCCESS) {
|
||||||
PRINT_BOOTSTRAP_RESULT(kr, "bootstrap_create_service(): ");
|
PRINT_BOOTSTRAP_RESULT(kr, "bootstrap_create_service(): ");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue