1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build with clang

PR:		176899
Submitted by:	Christopher Dukes <chris.dukes.aix@gmail.com>
This commit is contained in:
Dmitry Marakasov 2013-03-14 01:25:06 +00:00
parent 94c5bd1628
commit dee6375840
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314125

View File

@ -0,0 +1,20 @@
--- src/nvcore/Memory.h.orig 2010-05-14 21:59:28.000000000 +0400
+++ src/nvcore/Memory.h 2013-03-13 11:44:40.704932899 +0400
@@ -28,7 +28,7 @@
// Override new/delete
-inline void * operator new (size_t size) throw()
+inline void * operator new (size_t size) throw(std::bad_alloc)
{
return nv::mem::malloc(size);
}
@@ -38,7 +38,7 @@
nv::mem::free(p);
}
-inline void * operator new [] (size_t size) throw()
+inline void * operator new [] (size_t size) throw(std::bad_alloc)
{
return nv::mem::malloc(size);
}