Add /we4189 switch to CMAKE_CXX_FLAGS for MSVC.

- treat unused local variables warnings as error in Debug

Change-Id: I2da08b72e0f0083d3cdf932fbf92ef4981a88615
This commit is contained in:
Hoppe, Mateusz
2019-02-07 15:09:27 +01:00
committed by sys_ocldev
parent 6e0d04e25a
commit cb37f2a779
16 changed files with 51 additions and 66 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -73,6 +73,10 @@ void SehException::getCallStack(unsigned int code, struct _EXCEPTION_POINTERS *e
stack.clear();
BOOL result = SymInitialize(hProcess, NULL, TRUE);
if (result == FALSE) {
return;
}
STACKFRAME64 stackFrame;
memset(&stackFrame, 0, sizeof(STACKFRAME64));
const int nameSize = 255;