Skip to content
Snippets Groups Projects
Commit 0d8b746e authored by ebensza's avatar ebensza
Browse files

correcting error when compiling with clang


Signed-off-by: default avatarebensza <bence.janos.szabo@ericsson.com>
parent 6736901b
No related branches found
No related tags found
1 merge request!56correcting error when compiling with clang
......@@ -13,17 +13,18 @@
******************************************************************************/
#include "dbgnew.hh"
#include <stddef.h>
#include <new>
#undef new
static void *dummy = NULL;
void *operator new(size_t size) throw ()
void *operator new(size_t size) throw (std::bad_alloc)
{
return Malloc(size);
}
void *operator new[](size_t size) throw ()
void *operator new[](size_t size) throw (std::bad_alloc)
{
if (size == 0) return &dummy;
else return Malloc(size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment