From 963a282dc10036f367a2cb09bb5651aefc73d2a4 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sat, 20 Mar 2021 03:45:24 -0400 Subject: Final Warning pass (#99) * started on basic type errors * Done. For now * remove libgfxd binary * Fix Clang Warnings * Fix2 * Fix rollback of #92 and missed warning in ZCutscene.cpp * ? * add stdexcept to ZResource * Fix make clean * PR fixes * Fix make file stuff * Remove many more errors and remove -Wall * Turns out Globals was used * Final pass Co-authored-by: Fig02 --- ZAPD/ZFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ZAPD/ZFile.cpp') diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp index 29881cb..0141bb3 100644 --- a/ZAPD/ZFile.cpp +++ b/ZAPD/ZFile.cpp @@ -1031,11 +1031,11 @@ string ZFile::ProcessDeclarations() void ZFile::ProcessDeclarationText(Declaration* decl) { - int refIndex = 0; + size_t refIndex = 0; if (decl->references.size() > 0) { - for (int i = 0; i < decl->text.size() - 1; i++) + for (size_t i = 0; i < decl->text.size() - 1; i++) { char c = decl->text[i]; char c2 = decl->text[i + 1]; -- cgit v1.2.3