Fixed a compiler warning with MinGW toolchain
With -Wall set, MinGW warns about unused functions, and the restart_process function was unused if the game was compiled using something other than Visual Studio. The function is no longer compiled in with non-Microsoft toolchains.
This commit is contained in:
parent
2cc919fa1c
commit
4c81e28180
1 changed files with 1 additions and 1 deletions
|
@ -926,7 +926,7 @@ static void wesnoth_terminate_handler(int) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_OPENMP) && _MSC_VER >= 1600
|
||||
static void restart_process(const std::vector<std::string>& commandline)
|
||||
{
|
||||
wchar_t process_path[MAX_PATH];
|
||||
|
|
Loading…
Add table
Reference in a new issue