diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-19 19:11:15 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-19 19:11:15 +0000 |
commit | 39703fb7cbda4ac831258c70e7fac6517125febc (patch) | |
tree | 8460f0622922154910721c7d2a698a0ea52106e5 /ipc/ipc_channel.h | |
parent | 63dc378eac88be2da11255b61d7af140bb89ba55 (diff) | |
download | chromium_src-39703fb7cbda4ac831258c70e7fac6517125febc.zip chromium_src-39703fb7cbda4ac831258c70e7fac6517125febc.tar.gz chromium_src-39703fb7cbda4ac831258c70e7fac6517125febc.tar.bz2 |
ipc_channel: warn if someone forgets to check the result of Connect()
I found a test that was doing this.
Review URL: http://codereview.chromium.org/3759004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel.h')
-rw-r--r-- | ipc/ipc_channel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h index dc5031e..65ed9f0 100644 --- a/ipc/ipc_channel.h +++ b/ipc/ipc_channel.h @@ -6,6 +6,7 @@ #define IPC_IPC_CHANNEL_H_ #pragma once +#include "base/compiler_specific.h" #include "ipc/ipc_message.h" namespace IPC { @@ -68,7 +69,7 @@ class Channel : public Message::Sender { // connect to a pre-existing pipe. Note, calling Connect() // will not block the calling thread and may complete // asynchronously. - bool Connect(); + bool Connect() WARN_UNUSED_RESULT; // Close this Channel explicitly. May be called multiple times. void Close(); |