From 316771415b530b9ebe4e4821dd675b241fffc2ee Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 5 Aug 2023 11:11:10 -0500 Subject: [PATCH] "Fix" unused var warning. --- src/engine/filesys.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/filesys.h b/src/engine/filesys.h index 330303624d..136c446169 100644 --- a/src/engine/filesys.h +++ b/src/engine/filesys.h @@ -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(); @@ -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 data_c; std::size_t data_size = 0; FILE * file = nullptr;