Search
j0ke.net Open Build Service
>
Projects
>
server:database
:
hypertable:0.9
>
snappy
> snappy-1.1.1-random-return.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File snappy-1.1.1-random-return.patch of Package snappy
--- snappy-test.h | 8 ++++++-- snappy_unittest.cc | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) Index: snappy_unittest.cc =================================================================== --- snappy_unittest.cc.orig +++ snappy_unittest.cc @@ -161,6 +161,7 @@ static size_t MinimumRequiredOutputSpace default: LOG(FATAL) << "Unknown compression type number " << comp; + return -1; //make gcc happy } } Index: snappy-test.h =================================================================== --- snappy-test.h.orig +++ snappy-test.h @@ -132,13 +132,15 @@ } // namespace File namespace file { - int Defaults() { } + int Defaults() { return 0; } //make gcc happy class DummyStatus { public: void CheckSuccess() { } }; + DummyStatus _dummy_ret; + DummyStatus GetContents(const string& filename, string* data, int unused) { FILE* fp = fopen(filename.c_str(), "rb"); if (fp == NULL) { @@ -158,6 +160,7 @@ } fclose(fp); + return _dummy_ret; //make gcc happy } DummyStatus SetContents(const string& filename, @@ -176,6 +179,7 @@ } fclose(fp); + return _dummy_ret; //make gcc happy } } // namespace file