Skip to content

Commit

Permalink
ipc: Fix unused variable error when using IPC_HANDLER_GENERIC.
Browse files Browse the repository at this point in the history
If we use only IPC_HANDLER_GENERIC inside an IPC_BEGIN_MESSAGE_MAP block
we get an unused variable compile error for the extra param that's used
in IPC_BEGIN_MESSAGE_MAP_WITH_PARAM. This CL suppresses that error.

BUG=NONE

Review URL: https://codereview.chromium.org/1667353002

Cr-Commit-Position: refs/heads/master@{#373714}
  • Loading branch information
sunnyps authored and Commit bot committed Feb 5, 2016
1 parent 14f28d2 commit b3c862b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipc/ipc_message_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@
{ \
typedef class_name _IpcMessageHandlerClass ALLOW_UNUSED_TYPE; \
void* param__ = NULL; \
(void)param__; \
const IPC::Message& ipc_message__ = msg; \
switch (ipc_message__.type()) {

Expand Down

0 comments on commit b3c862b

Please sign in to comment.