From c3bb61258291b2919d4ce787273998adb54d1e1a Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 9 Aug 2023 05:49:51 -0700 Subject: [PATCH] Mac: fix compiler warnings introduced by commit 59eb2c20ea --- clientgui/DlgEventLog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clientgui/DlgEventLog.cpp b/clientgui/DlgEventLog.cpp index 00c13a6f39..7c9f38e695 100644 --- a/clientgui/DlgEventLog.cpp +++ b/clientgui/DlgEventLog.cpp @@ -1086,7 +1086,7 @@ void CDlgEventLog::FindErrorMessages(bool isFiltered) { MESSAGE* message; wxInt32 i = 0; if (isFiltered) { - for (i; i < m_iFilteredDocCount; i++) { + for (i=0; i < m_iFilteredDocCount; i++) { message = wxGetApp().GetDocument()->message(GetFilteredMessageIndex(i)); if (message) { if (message->priority == MSG_USER_ALERT) { @@ -1096,7 +1096,7 @@ void CDlgEventLog::FindErrorMessages(bool isFiltered) { } } else { - for (i; i < m_iTotalDocCount; i++) { + for (i=0; i < m_iTotalDocCount; i++) { message = wxGetApp().GetDocument()->message(i); if (message) { if (message->priority == MSG_USER_ALERT) { @@ -1130,7 +1130,7 @@ void CDlgEventLog::FindProjectMessages(bool isFiltered) { MESSAGE* message; wxInt32 i = 0; if (isFiltered) { - for (i; i < m_iFilteredDocCount; i++) { + for (i=0; i < m_iFilteredDocCount; i++) { message = wxGetApp().GetDocument()->message(GetFilteredMessageIndex(i)); if (message) { if (message->project.empty() || message->project == s_strFilteredProjectName) { @@ -1140,7 +1140,7 @@ void CDlgEventLog::FindProjectMessages(bool isFiltered) { } } else { - for (i; i < m_iTotalDocCount; i++) { + for (i=0; i < m_iTotalDocCount; i++) { message = wxGetApp().GetDocument()->message(i); if (message) { if (message->project.empty() || message->project == s_strFilteredProjectName) {