Skip to content

Commit

Permalink
"Fix" unused var warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Aug 5, 2023
1 parent ff624ab commit 3167714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/filesys.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ namespace b2 { namespace filesys {
class file_buffer
{
public:
bool is_memory_mapped = false;

file_buffer(const std::string & filepath);
~file_buffer();

Expand All @@ -135,7 +137,6 @@ class file_buffer
inline const char * end() const { return data_c.get()+size(); }

private:
bool is_memory_mapped = false;
std::unique_ptr<char[]> data_c;
std::size_t data_size = 0;
FILE * file = nullptr;
Expand Down

0 comments on commit 3167714

Please sign in to comment.