mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 05:00:48 +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,
|
'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 FROM_HERE
|
||||||
#undef LOG
|
#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/renderer/v8_impl.h"
|
||||||
|
|
||||||
#include "libcef/common/cef_switches.h"
|
#include "libcef/common/cef_switches.h"
|
||||||
@ -2401,3 +2407,9 @@ bool CefV8StackFrameImpl::IsEval() {
|
|||||||
bool CefV8StackFrameImpl::IsConstructor() {
|
bool CefV8StackFrameImpl::IsConstructor() {
|
||||||
return is_constructor_;
|
return is_constructor_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Enable deprecation warnings for MSVC. See http://crbug.com/585142.
|
||||||
|
#if defined(OS_WIN)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user