Skip to content

Commit

Permalink
Build fixes for gcc-11
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed May 4, 2021
1 parent 49061e9 commit 626b8c0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions include/dwarfs/block_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <memory>

#include "dwarfs/block_compressor.h"
#include "dwarfs/fstypes.h"

namespace dwarfs {

Expand Down
1 change: 1 addition & 0 deletions include/dwarfs/entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion include/dwarfs/filesystem_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <folly/Expected.h>
#include <folly/dynamic.h>

#include "dwarfs/fstypes.h"
#include "dwarfs/metadata_types.h"

struct stat;
Expand All @@ -47,7 +48,6 @@ struct filesystem_options;
struct rewrite_options;
struct iovec_read_buf;

class block_range;
class filesystem_writer;
class logger;
class mmif;
Expand Down
10 changes: 5 additions & 5 deletions include/dwarfs/fstypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ class block_range {
block_range(std::shared_ptr<cached_block const> block, size_t offset,
size_t size);

const uint8_t* data() const { return begin_; }
const uint8_t* begin() const { return begin_; }
const uint8_t* end() const { return end_; }
uint8_t const* data() const { return begin_; }
uint8_t const* begin() const { return begin_; }
uint8_t const* end() const { return end_; }
size_t size() const { return end_ - begin_; }

private:
const uint8_t* const begin_;
const uint8_t* const end_;
uint8_t const* const begin_;
uint8_t const* const end_;
std::shared_ptr<cached_block const> block_;
};

Expand Down
1 change: 0 additions & 1 deletion src/dwarfs/block_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

#include "dwarfs/block_cache.h"
#include "dwarfs/fs_section.h"
#include "dwarfs/fstypes.h"
#include "dwarfs/logger.h"
#include "dwarfs/mmif.h"
#include "dwarfs/options.h"
Expand Down

0 comments on commit 626b8c0

Please sign in to comment.