dummy var to suppress compiler warning/error

Summary: Revmoed this in D25641, causing compiler complain. put it back

Test Plan: make release

Reviewers: igor, yhchiang, rven, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D27891
This commit is contained in:
Lei Jin 2014-10-29 15:38:34 -07:00 committed by Yueh-Hsuan Chiang
parent f96bb67e5e
commit b11a617acd

View File

@ -738,7 +738,8 @@ class PosixWritableFile : public WritableFile {
// trim the extra space preallocated at the end of the file // trim the extra space preallocated at the end of the file
// NOTE(ljin): we probably don't want to surface failure as an IOError, // NOTE(ljin): we probably don't want to surface failure as an IOError,
// but it will be nice to log these errors. // but it will be nice to log these errors.
ftruncate(fd_, filesize_); int dummy __attribute__((unused));
dummy = ftruncate(fd_, filesize_);
#ifdef ROCKSDB_FALLOCATE_PRESENT #ifdef ROCKSDB_FALLOCATE_PRESENT
// in some file systems, ftruncate only trims trailing space if the // in some file systems, ftruncate only trims trailing space if the
// new file size is smaller than the current size. Calling fallocate // new file size is smaller than the current size. Calling fallocate