From 3acbe8145c60f4d1e7a180b4602a94269a489df5 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 27 Apr 2023 12:36:59 +0800 Subject: Fix most of the disabled warnings on gcc/clang (#2839) --- source/slang/slang-options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-options.cpp') diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 0860ef4f2..8817095df 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -231,7 +231,7 @@ struct OptionsParser { ".comp", Profile::GLSL_Compute } }; - for (int i = 0; i < SLANG_COUNT_OF(entries); ++i) + for (Index i = 0; i < SLANG_COUNT_OF(entries); ++i) { const Entry& entry = entries[i]; if (path.endsWith(entry.ext)) @@ -274,7 +274,7 @@ struct OptionsParser }; - for (int i = 0; i < SLANG_COUNT_OF(entries); ++i) + for (Index i = 0; i < SLANG_COUNT_OF(entries); ++i) { const Entry& entry = entries[i]; if (path.endsWith(entry.ext)) -- cgit v1.2.3