From b4c66a4a7e1cc20bfd94b18eede756738be21c2c Mon Sep 17 00:00:00 2001 From: Ranjeeth Mahankali Date: Fri, 19 Jun 2026 10:47:38 -0400 Subject: [PATCH] Fix warning when building with -O3 --- nob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nob.h b/nob.h index 2735a93..c11d451 100644 --- a/nob.h +++ b/nob.h @@ -2497,7 +2497,7 @@ NOBDEF bool nob_read_entire_file(const char *path, Nob_String_Builder *sb) sb->capacity = new_count; } - fread(sb->items + sb->count, m, 1, f); + size_t const nread = fread(sb->items + sb->count, m, 1, f); if (ferror(f)) { // TODO: Afaik, ferror does not set errno. So the error reporting in defer is not correct in this case. nob_return_defer(false);