diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 20:47:41 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 20:47:41 +0000 |
commit | 2c95e2e2c1f0e566b355feea2edee60423245b7a (patch) | |
tree | 5816793117da87adcb7b6eb9962a3f863782ccfe /courgette | |
parent | 2c556966fd9de58860ac4d0a81f893affd2c45cc (diff) | |
download | chromium_src-2c95e2e2c1f0e566b355feea2edee60423245b7a.zip chromium_src-2c95e2e2c1f0e566b355feea2edee60423245b7a.tar.gz chromium_src-2c95e2e2c1f0e566b355feea2edee60423245b7a.tar.bz2 |
Quick fix for clang and linux views builders.
TBR=robertshield
BUG=none
Review URL: http://codereview.chromium.org/6721007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette')
-rw-r--r-- | courgette/streams.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/courgette/streams.h b/courgette/streams.h index a778185..2543e99 100644 --- a/courgette/streams.h +++ b/courgette/streams.h @@ -121,21 +121,21 @@ class SinkStream { ~SinkStream() {} // Appends |byte_count| bytes from |data| to the stream. - CheckBool Write(const void* data, size_t byte_count) WARN_UNUSED_RESULT; + CheckBool Write(const void* data, size_t byte_count); // Appends the 'varint32' encoding of |value| to the stream. - CheckBool WriteVarint32(uint32 value) WARN_UNUSED_RESULT; + CheckBool WriteVarint32(uint32 value); // Appends the 'varint32' encoding of |value| to the stream. - CheckBool WriteVarint32Signed(int32 value) WARN_UNUSED_RESULT; + CheckBool WriteVarint32Signed(int32 value); // Appends the 'varint32' encoding of |value| to the stream. // On platforms where sizeof(size_t) != sizeof(int32), do a safety check. - CheckBool WriteSizeVarint32(size_t value) WARN_UNUSED_RESULT; + CheckBool WriteSizeVarint32(size_t value); // Contents of |other| are appended to |this| stream. The |other| stream // becomes retired. - CheckBool Append(SinkStream* other) WARN_UNUSED_RESULT; + CheckBool Append(SinkStream* other); // Returns the number of bytes in this SinkStream size_t Length() const { return buffer_.size(); } @@ -149,7 +149,7 @@ class SinkStream { // Hints that the stream will grow by an additional |length| bytes. // Caller must be prepared to handle memory allocation problems. - CheckBool Reserve(size_t length) WARN_UNUSED_RESULT { + CheckBool Reserve(size_t length) { buffer_.reserve(length + buffer_.length()); //TODO(tommi): return false when allocation fails. return true; |