mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:18:12 +02:00
Merge pull request #4974 from ctrlaltdavid/fix-c4351
Fix Windows C4351 build warning
This commit is contained in:
commit
1cdb36f7fb
3 changed files with 2 additions and 18 deletions
|
@ -40,7 +40,8 @@ if (WIN32)
|
||||||
endif ()
|
endif ()
|
||||||
message (WINDOW_SDK_PATH= ${WINDOW_SDK_PATH})
|
message (WINDOW_SDK_PATH= ${WINDOW_SDK_PATH})
|
||||||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${WINDOW_SDK_PATH})
|
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${WINDOW_SDK_PATH})
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
# /wd4351 disables warning C4351: new behavior: elements of array will be default initialized
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /wd4351")
|
||||||
# /LARGEADDRESSAWARE enables 32-bit apps to use more than 2GB of memory.
|
# /LARGEADDRESSAWARE enables 32-bit apps to use more than 2GB of memory.
|
||||||
# Caveats: http://stackoverflow.com/questions/2288728/drawbacks-of-using-largeaddressaware-for-32-bit-windows-executables
|
# Caveats: http://stackoverflow.com/questions/2288728/drawbacks-of-using-largeaddressaware-for-32-bit-windows-executables
|
||||||
# TODO: Remove when building 64-bit.
|
# TODO: Remove when building 64-bit.
|
||||||
|
|
|
@ -141,13 +141,6 @@ static const float STARTING_DDE_MESSAGE_TIME = 0.033f;
|
||||||
static const float DEFAULT_DDE_EYE_CLOSING_THRESHOLD = 0.8f;
|
static const float DEFAULT_DDE_EYE_CLOSING_THRESHOLD = 0.8f;
|
||||||
static const int CALIBRATION_SAMPLES = 150;
|
static const int CALIBRATION_SAMPLES = 150;
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
// warning C4351: new behavior: elements of array 'DdeFaceTracker::_lastEyeBlinks' will be default initialized
|
|
||||||
// warning C4351: new behavior: elements of array 'DdeFaceTracker::_filteredEyeBlinks' will be default initialized
|
|
||||||
// warning C4351: new behavior: elements of array 'DdeFaceTracker::_lastEyeCoefficients' will be default initialized
|
|
||||||
#pragma warning(disable:4351)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DdeFaceTracker::DdeFaceTracker() :
|
DdeFaceTracker::DdeFaceTracker() :
|
||||||
DdeFaceTracker(QHostAddress::Any, DDE_SERVER_PORT, DDE_CONTROL_PORT)
|
DdeFaceTracker(QHostAddress::Any, DDE_SERVER_PORT, DDE_CONTROL_PORT)
|
||||||
{
|
{
|
||||||
|
@ -214,10 +207,6 @@ DdeFaceTracker::~DdeFaceTracker() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#pragma warning(default:4351)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void DdeFaceTracker::init() {
|
void DdeFaceTracker::init() {
|
||||||
FaceTracker::init();
|
FaceTracker::init();
|
||||||
setEnabled(Menu::getInstance()->isOptionChecked(MenuOption::UseCamera) && !_isMuted);
|
setEnabled(Menu::getInstance()->isOptionChecked(MenuOption::UseCamera) && !_isMuted);
|
||||||
|
|
|
@ -32,12 +32,6 @@ Assignment::Type Assignment::typeForNodeType(NodeType_t nodeType) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
//warning C4351: new behavior: elements of array 'Assignment::_payload' will be default initialized
|
|
||||||
// We're disabling this warning because the new behavior which is to initialize the array with 0 is acceptable to us.
|
|
||||||
#pragma warning(disable:4351)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Assignment::Assignment() :
|
Assignment::Assignment() :
|
||||||
_uuid(),
|
_uuid(),
|
||||||
_command(Assignment::RequestCommand),
|
_command(Assignment::RequestCommand),
|
||||||
|
|
Loading…
Reference in a new issue