Skip to content

Commit

Permalink
dummy var to suppress compiler warning/error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lei Jin authored and yhchiang committed Oct 30, 2014
1 parent f96bb67 commit b11a617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/env_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ class PosixWritableFile : public WritableFile {
// trim the extra space preallocated at the end of the file
// NOTE(ljin): we probably don't want to surface failure as an IOError,
// but it will be nice to log these errors.
ftruncate(fd_, filesize_);
int dummy __attribute__((unused));
dummy = ftruncate(fd_, filesize_);
#ifdef ROCKSDB_FALLOCATE_PRESENT
// in some file systems, ftruncate only trims trailing space if the
// new file size is smaller than the current size. Calling fallocate
Expand Down

0 comments on commit b11a617

Please sign in to comment.