From 7f424bb7e9b171ae74ca1f34e72216f2e5860179 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 12 Aug 2018 13:58:48 +0200 Subject: [PATCH] Disable dump_streamfile when debug isn't used, just in case --- src/streamfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/streamfile.c b/src/streamfile.c index cd39ab6c..032a9ab3 100644 --- a/src/streamfile.c +++ b/src/streamfile.c @@ -1098,6 +1098,7 @@ void get_streamfile_ext(STREAMFILE *streamFile, char * filename, size_t size) { /* debug util, mainly for custom IO testing */ void dump_streamfile(STREAMFILE *streamFile, const char* out) { +#ifdef VGM_DEBUG_OUTPUT off_t offset = 0; FILE *f = NULL; @@ -1122,4 +1123,5 @@ void dump_streamfile(STREAMFILE *streamFile, const char* out) { if (out) { fclose(f); } +#endif }