mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1111425 - Silence the warning about operator new returning null in TestNonHeapClass.cpp; r=jrmuizel
clang issues the following warning on this: 'operator new' should not return a null pointer unless it is declared 'throw()' or 'noexcept'
This commit is contained in:
parent
2cc6ea0555
commit
6db2d849d2
@ -4,7 +4,7 @@
|
||||
|
||||
struct MOZ_NONHEAP_CLASS NonHeap {
|
||||
int i;
|
||||
void *operator new(size_t x) { return 0; }
|
||||
void *operator new(size_t x) throw() { return 0; }
|
||||
void *operator new(size_t blah, char *buffer) { return buffer; }
|
||||
};
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
struct MOZ_STACK_CLASS Stack {
|
||||
int i;
|
||||
void *operator new(size_t x) { return 0; }
|
||||
void *operator new(size_t x) throw() { return 0; }
|
||||
void *operator new(size_t blah, char *buffer) { return buffer; }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user