Skip to content
Snippets Groups Projects
Commit 14e0568b authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Unused variable under windows.

parent bee31310
No related branches found
No related tags found
No related merge requests found
...@@ -92,9 +92,9 @@ void PyEmbeddedUtils::import_bornagain(const std::string& path) ...@@ -92,9 +92,9 @@ void PyEmbeddedUtils::import_bornagain(const std::string& path)
// Stores signal handler before numpy's mess it up. // Stores signal handler before numpy's mess it up.
// This is to make ctrl-c working from terminal. // This is to make ctrl-c working from terminal.
PyOS_sighandler_t sighandler;
#ifndef _WIN32 #ifndef _WIN32
sighandler = PyOS_getsig(SIGINT); PyOS_sighandler_t sighandler;
sighandler = PyOS_getsig(SIGINT);
#endif #endif
PyObject* pmod = PyImport_ImportModule("bornagain"); PyObject* pmod = PyImport_ImportModule("bornagain");
if (!pmod) { if (!pmod) {
...@@ -104,7 +104,7 @@ void PyEmbeddedUtils::import_bornagain(const std::string& path) ...@@ -104,7 +104,7 @@ void PyEmbeddedUtils::import_bornagain(const std::string& path)
// restores single handler to make ctr-c alive. // restores single handler to make ctr-c alive.
#ifndef _WIN32 #ifndef _WIN32
PyOS_setsig(SIGINT, sighandler); PyOS_setsig(SIGINT, sighandler);
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment