Windows/Linux: Enable V8 deprecation warnings

This commit is contained in:
Marshall Greenblatt 2016-02-08 13:47:18 -05:00
parent f7aa98fe69
commit 8972bbfcb6
2 changed files with 13 additions and 7 deletions

View File

@ -30,11 +30,5 @@
'enable_themes': 0,
}]
]
}, 'conditions': [
['os_posix==1 and OS!="mac" and OS!="android"', {
'target_defaults': {
'cflags_cc': ['-Wno-deprecated-declarations'],
},
}]
],
}
}

View File

@ -23,6 +23,12 @@ MSVC_POP_WARNING();
#undef FROM_HERE
#undef LOG
// Enable deprecation warnings for MSVC. See http://crbug.com/585142.
#if defined(OS_WIN)
#pragma warning(push)
#pragma warning(default:4996)
#endif
#include "libcef/renderer/v8_impl.h"
#include "libcef/common/cef_switches.h"
@ -2401,3 +2407,9 @@ bool CefV8StackFrameImpl::IsEval() {
bool CefV8StackFrameImpl::IsConstructor() {
return is_constructor_;
}
// Enable deprecation warnings for MSVC. See http://crbug.com/585142.
#if defined(OS_WIN)
#pragma warning(pop)
#endif