mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-28 18:41:24 +01:00
Windows/Linux: Enable V8 deprecation warnings
This commit is contained in:
parent
f7aa98fe69
commit
8972bbfcb6
8
cef.gypi
8
cef.gypi
@ -30,11 +30,5 @@
|
||||
'enable_themes': 0,
|
||||
}]
|
||||
]
|
||||
}, 'conditions': [
|
||||
['os_posix==1 and OS!="mac" and OS!="android"', {
|
||||
'target_defaults': {
|
||||
'cflags_cc': ['-Wno-deprecated-declarations'],
|
||||
},
|
||||
}]
|
||||
],
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user