Skip to content

Commit

Permalink
Added some wxUnusedVar() statements to avoid gcc warning about variab…
Browse files Browse the repository at this point in the history
…les being set but unused.
  • Loading branch information
pngbill committed Jan 2, 2025
1 parent 67ecfa0 commit a542b50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/Adapt_It.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35447,6 +35447,7 @@ enum Reparse reparseDoc)
// page in Preferences.
bool m_bMkr_xt_WasFilteredBeforeFilteringChange;
bool m_bMkr_xt_WasUnfilteredBeforeFilteringChange;
wxUnusedVar(m_bMkr_xt_WasUnfilteredBeforeFilteringChange); // prevent gcc warning

// whm 29Feb204 added. We need to determine the filter status of the \x and \xt markers
// before the edit in the filter page, so we can use this information to adjust the
Expand Down
1 change: 1 addition & 0 deletions source/Adapt_ItDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36236,6 +36236,7 @@ CSourcePhrase* CAdapt_ItDoc::GetPreviousNonPlaceholderSrcPhrase(CSourcePhrase* p
// in which when no parameter is given (in calls from TokenizeText etc) a ->Find(pPrevSrcPhrase)
// is used below. When bXMLInput is TRUE, m_pSourcePhrases->Item(nSequNum) is used instead.
CSourcePhrase* pTestSP = NULL;
wxUnusedVar(pTextSP); // avoid gcc warning
if (bXMLInput == TRUE)
{
// When called from XML input routines start by determining the pos_pSPList of the last
Expand Down
1 change: 1 addition & 0 deletions source/Adapt_ItView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@ CPile* CAdapt_ItView::GetNextPile_forFreeTrans()
wxLogDebug(_T("GetNextPile_forFreeTrans() in View, check first sequNum, line= %d, sequNum= %d"),
__LINE__, pApp->m_nSN_forFreeTrans);
CSourcePhrase* pSP = NULL;
wxUnusedVar(pSP); // avoid gcc warning

iStart = pApp->m_nSN_forFreeTrans;
PileList* pilesPtr = GetLayout()->GetPileList();
Expand Down

0 comments on commit a542b50

Please sign in to comment.