X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fallocator;h=d9faae97a5520364b13cb61562c2939da72562c4;hb=2f3e82a7b2847e6ff7d65e73295bf3d6469236ab;hp=0bb12ea2a3fe6eb2375495a4e4675dd9d3995fbd;hpb=ce7b4832233f024983d7915f9c21cdd9b9fb4785;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/include_exp/allocator b/Usermode/Libraries/libc++.so_src/include_exp/allocator index 0bb12ea2..d9faae97 100644 --- a/Usermode/Libraries/libc++.so_src/include_exp/allocator +++ b/Usermode/Libraries/libc++.so_src/include_exp/allocator @@ -31,7 +31,7 @@ public: allocator() throw() { } - allocator(const allocator& alloc) throw() { + allocator(const allocator& alloc __attribute__((unused))) throw() { } template allocator(const allocator& alloc) throw() { @@ -46,9 +46,11 @@ public: return &x; } pointer allocate(size_type n, const void* hint=0) { - ::operator new (n * sizeof(value_type)); + hint = hint; + return static_cast( ::operator new (n * sizeof(value_type)) ); } void deallocate(pointer p, size_type n) { + n=n; ::operator delete(p); } };