Skip to content

Commit b6ef33e

Browse files
committed
- removed with python 3.9 deprecated PyEval_InitThreads()
- avoid compiler warnings
1 parent dbd885f commit b6ef33e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

PythonScript/src/MenuManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ void MenuManager::reconfigure()
779779

780780
void MenuManager::removeItem(int index)
781781
{
782-
BOOL removed = ::SendMessage(m_hNotepad, NPPM_REMOVESHORTCUTBYCMDID, static_cast<WPARAM>(m_funcItems[m_dynamicStartIndex + index - 1]._cmdID), 0);
782+
::SendMessage(m_hNotepad, NPPM_REMOVESHORTCUTBYCMDID, static_cast<WPARAM>(m_funcItems[m_dynamicStartIndex + index - 1]._cmdID), 0);
783783
}
784784

785785
void MenuManager::configureToolbarIcons()

PythonScript/src/PythonHandler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ void PythonHandler::initPython()
227227
}
228228
}
229229

230-
// Initialise threading and create & acquire Global Interpreter Lock
231-
PyEval_InitThreads();
232-
233230
std::string importSys("import sys\n");
234231

235232
PyRun_SimpleString(importSys.c_str());

PythonScript/src/stdafx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#endif
3030

3131
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
32+
#ifdef NOMINMAX
3233
#define NOMINMAX
34+
#endif
3335
// Windows Header Files:
3436
#include <windows.h>
3537
#include <WindowsX.h>

0 commit comments

Comments
 (0)