forked from 0ad/0ad
MSVC warning fixes
This was SVN commit r7585.
This commit is contained in:
parent
ff17691d4f
commit
159b96c1a1
@ -247,6 +247,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
pool_allocator& operator=(const pool_allocator&) throw ()
|
||||
{
|
||||
}
|
||||
|
||||
pointer address(reference r)
|
||||
{
|
||||
return &r;
|
||||
@ -270,6 +274,7 @@ public:
|
||||
void destroy(const pointer ptr)
|
||||
{
|
||||
ptr->~T();
|
||||
UNUSED2(ptr); // silence MSVC warnings
|
||||
}
|
||||
|
||||
pointer allocate(size_type n)
|
||||
|
@ -54,6 +54,7 @@
|
||||
# pragma warning(disable:4786) // identifier truncated to 255 chars
|
||||
# pragma warning(disable:4351) // yes, default init of array entries is desired
|
||||
# pragma warning(disable:4355) // 'this' used in base member initializer list
|
||||
# pragma warning(disable:4718) // recursive call has no side effects, deleting
|
||||
// .. disabled only for the precompiled headers
|
||||
# pragma warning(disable:4702) // unreachable code (frequent in STL)
|
||||
// .. VS2005 code analysis (very frequent ones)
|
||||
|
Loading…
Reference in New Issue
Block a user