Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
snappy
snappy-1.1.1-random-return.patch
Overview
Repositories
Revisions
Requests
Users
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor