Kaydet (Commit) 2ed28620 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence -Werror,-Wimplicit-fallthrough under NDEBUG

Change-Id: I7b2d5275614af69f6065d1838a76436801be30ef
üst 13801e2c
...@@ -546,15 +546,14 @@ RequestHandler::Status DbusIpcThread::enable(rtl::Reference<IpcThread> * thread) ...@@ -546,15 +546,14 @@ RequestHandler::Status DbusIpcThread::enable(rtl::Reference<IpcThread> * thread)
} }
return RequestHandler::IPC_STATUS_2ND_OFFICE; return RequestHandler::IPC_STATUS_2ND_OFFICE;
} }
default:
assert(false);
// fall through
case DBUS_REQUEST_NAME_REPLY_IN_QUEUE: case DBUS_REQUEST_NAME_REPLY_IN_QUEUE:
case DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER: case DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER:
SAL_WARN( SAL_WARN(
"desktop.app", "desktop.app",
"dbus_bus_request_name failed with unexpected " << +n); "dbus_bus_request_name failed with unexpected " << +n);
return RequestHandler::IPC_STATUS_BOOTSTRAP_ERROR; return RequestHandler::IPC_STATUS_BOOTSTRAP_ERROR;
default:
for (;;) std::abort();
} }
} }
} }
...@@ -636,15 +635,14 @@ void DbusIpcThread::close() { ...@@ -636,15 +635,14 @@ void DbusIpcThread::close() {
break; break;
case DBUS_RELEASE_NAME_REPLY_RELEASED: case DBUS_RELEASE_NAME_REPLY_RELEASED:
break; break;
default:
assert(false);
// fall through
case DBUS_RELEASE_NAME_REPLY_NOT_OWNER: case DBUS_RELEASE_NAME_REPLY_NOT_OWNER:
case DBUS_RELEASE_NAME_REPLY_NON_EXISTENT: case DBUS_RELEASE_NAME_REPLY_NON_EXISTENT:
SAL_WARN( SAL_WARN(
"desktop.app", "desktop.app",
"dbus_bus_release_name failed with unexpected " << +n); "dbus_bus_release_name failed with unexpected " << +n);
break; break;
default:
for (;;) std::abort();
} }
connection_.clear(); connection_.clear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment