summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/squirrel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp
index aa698af83..41024b2f9 100644
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -651,8 +651,7 @@ SQRESULT Squirrel::LoadFile(HSQUIRRELVM vm, const char *filename, SQBool printer
}
unsigned short bom = 0;
if (size >= 2) {
- size_t sr = fread(&bom, 1, sizeof(bom), file);
- (void)sr; // Inside tar, no point checking return value of fread
+ [[maybe_unused]] size_t sr = fread(&bom, 1, sizeof(bom), file);
}
SQLEXREADFUNC func;