From 2ddbc3461da6c16da5f7bb7b6a6194837e260f1a Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 1 Sep 2025 13:27:42 +0600 Subject: [PATCH] Warning fixes --- src/edid_parse.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/edid_parse.cpp b/src/edid_parse.cpp index 8bc8a0684..e62767ba5 100644 --- a/src/edid_parse.cpp +++ b/src/edid_parse.cpp @@ -38,7 +38,7 @@ extern "C" file = plat_fopen(path, "rb"); if (file) { std::string str; - size_t size; + ssize_t size; if (!fseek(file, 0, SEEK_END)) { size = ftell(file); if (size != -1) { @@ -64,7 +64,6 @@ extern "C" } file = plat_fopen(path, "rb"); if (file) { - char* buf = NULL; size_t size = 0; std::string edid_decode_text; fseek(file, 0, SEEK_END); @@ -100,7 +99,7 @@ extern "C" *size_out = vals.size(); if (vals.size() > 256) return false; - for (int i = 0; i < vals.size(); i++) { + for (size_t i = 0; i < vals.size(); i++) { out[i] = (uint8_t)std::strtoul(&vals[i][0], nullptr, 16); } return true;