]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix exception specification for operator delete as spotted by clang 3.3
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 1 Oct 2013 22:18:14 +0000 (22:18 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 1 Oct 2013 22:18:14 +0000 (22:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13598

massif/tests/overloaded-new.cpp

index e92cfd55a1cf9c29d6cd39789b1858b2c6ccff13..6c61d8e1d5efa59994af0c9512f1191022363b6f 100644 (file)
@@ -34,12 +34,12 @@ __attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t co
     return malloc(n);
 }
 
-__attribute__((noinline)) void operator delete (void* p)
+__attribute__((noinline)) void operator delete (void* p) throw()
 {
     return free(p);
 }
 
-__attribute__((noinline)) void operator delete[] (void* p)
+__attribute__((noinline)) void operator delete[] (void* p) throw()
 {
     return free(p);
 }