From 47208b234de757677c3f872e9d6cc824fc35d41a Mon Sep 17 00:00:00 2001 From: David Siegel Date: Mon, 5 Jun 2023 22:14:30 +0200 Subject: [PATCH] fix warnings: unused variable --- tiny_gltf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index f497ad9..a13845d 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -2891,7 +2891,7 @@ bool GetFileSizeInBytes(size_t *filesize_out, std::string *err, } // For directory(and pipe?), peek() will fail(Posix gnustl/libc++ only) - int buf = f.peek(); + f.peek(); if (!f) { if (err) { (*err) += "File read error. Maybe empty file or invalid file : " + filepath + "\n"; @@ -2984,7 +2984,7 @@ bool ReadWholeFile(std::vector *out, std::string *err, } // For directory(and pipe?), peek() will fail(Posix gnustl/libc++ only) - int buf = f.peek(); + f.peek(); if (!f) { if (err) { (*err) += "File read error. Maybe empty file or invalid file : " + filepath + "\n";