From 51bfed2032bbaf7e1136cfb292d65172d8142c65 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 23 Sep 2021 21:55:58 -0700 Subject: [PATCH] Ifdef `numberofHeaders` out if not compiling music This variable is only used when compiling music. Since it doesn't actually keep track of the number of headers otherwise, ifdef it behind VVV_COMPILEMUSIC. --- desktop_version/src/BinaryBlob.cpp | 2 ++ desktop_version/src/BinaryBlob.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/desktop_version/src/BinaryBlob.cpp b/desktop_version/src/BinaryBlob.cpp index 06c9bf1b..1ed7d93e 100644 --- a/desktop_version/src/BinaryBlob.cpp +++ b/desktop_version/src/BinaryBlob.cpp @@ -12,7 +12,9 @@ binaryBlob::binaryBlob(void) { +#ifdef VVV_COMPILEMUSIC numberofHeaders = 0; +#endif SDL_zeroa(m_headers); SDL_zeroa(m_memblocks); } diff --git a/desktop_version/src/BinaryBlob.h b/desktop_version/src/BinaryBlob.h index 6cf449f1..6306313f 100644 --- a/desktop_version/src/BinaryBlob.h +++ b/desktop_version/src/BinaryBlob.h @@ -57,7 +57,9 @@ public: static const int max_headers = 128; +#ifdef VVV_COMPILEMUSIC int numberofHeaders; +#endif resourceheader m_headers[max_headers]; char* m_memblocks[max_headers]; };