Squash a couple of annoying compiler warnings

This commit is contained in:
Joe Thornber
2014-09-02 10:13:26 +01:00
parent 23735a0253
commit 4c026458d5
2 changed files with 19 additions and 5 deletions

View File

@@ -17,6 +17,15 @@ namespace {
struct flags {
flags()
: max_hint_width(4) {
// Dance around some spurious compiler warnings
device_size = 0;
block_size = 0;
nr_blocks = 0;
device_size.reset();
block_size.reset();
nr_blocks.reset();
}
boost::optional<uint64_t> device_size;