Fix and disable some pesky Windows warnings.
Differential Revision: https://code.wildfiregames.com/D3511 This was SVN commit r24838.
This commit is contained in:
parent
5eb7fba3bd
commit
321e3652f9
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2020 Wildfire Games.
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
@ -34,6 +34,7 @@
|
||||
# pragma warning(disable:4127) // conditional expression is constant; rationale: see STMT in lib.h.
|
||||
# pragma warning(disable:4324) // structure was padded due to __declspec(align())
|
||||
# pragma warning(disable:4574) // macro is defined to be 0
|
||||
# pragma warning(disable:4456) // hides previous local declaration
|
||||
# pragma warning(disable:4355) // 'this' used in base member initializer list
|
||||
# pragma warning(disable:4512) // assignment operator could not be generated
|
||||
# pragma warning(disable:4718) // recursive call has no side effects, deleting
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2014 Wildfire Games.
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -41,9 +41,9 @@ static CStr g_Libdir = "";
|
||||
|
||||
// note: on Linux, lib is prepended to the SO file name
|
||||
#if OS_UNIX
|
||||
static CStr prefix = "lib";
|
||||
static CStr g_DllPrefix = "lib";
|
||||
#else
|
||||
static CStr prefix = "";
|
||||
static CStr g_DllPrefix = "";
|
||||
#endif
|
||||
|
||||
// we usually want to use the same debug/release build type as the
|
||||
@ -99,7 +99,7 @@ static CStr GenerateFilename(const CStr& name, const CStr& suffix, const CStr& e
|
||||
}
|
||||
#endif
|
||||
|
||||
n += prefix + name + suffix + extension;
|
||||
n += g_DllPrefix + name + suffix + extension;
|
||||
return n;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2020 Wildfire Games.
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -371,6 +371,8 @@ void Interface::ApplyMessage(const GameMessage& msg)
|
||||
m_MsgLock.unlock();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user