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:
Ehsan Akhgari 2014-12-16 00:38:21 -05:00
parent 2cc6ea0555
commit 6db2d849d2
2 changed files with 2 additions and 2 deletions

View File

@ -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; }
};

View File

@ -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; }
};