Skip to content

Commit 921f731

Browse files
committed
Fix windows unused variable warning
1 parent d3c87f2 commit 921f731

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/twbl/hotreload.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ bool CHotreloader::NeedRefresh()
5151

5252
void *CHotreloader::LoadTick(FTwbl_BotTick *ppfnBotTick)
5353
{
54-
const char *pFilename = m_aFilename;
55-
const char *pTickname = m_aTickname;
56-
5754
*ppfnBotTick = m_pfnBotTick;
5855

5956
if(!NeedRefresh())
@@ -64,6 +61,9 @@ void *CHotreloader::LoadTick(FTwbl_BotTick *ppfnBotTick)
6461
#ifdef CONF_FAMILY_WINDOWS
6562
return nullptr;
6663
#else
64+
const char *pFilename = m_aFilename;
65+
const char *pTickname = m_aTickname;
66+
6767
char aTickfunc[1024];
6868
snprintf(aTickfunc, sizeof(aTickfunc), "Twbl_%sTickHot", pTickname);
6969

0 commit comments

Comments
 (0)