Get rid of a warning in GCC 3.3.

[SVN r19069]
This commit is contained in:
Douglas Gregor
2003-07-11 17:42:12 +00:00
parent 2c8fc1b31f
commit 1a6d95733a

View File

@ -23,8 +23,9 @@ struct stateless_integer_add {
void* operator new(std::size_t, stateless_integer_add*) void* operator new(std::size_t, stateless_integer_add*)
{ {
static int foo = 5;
throw std::runtime_error("Cannot allocate a stateless_integer_add"); throw std::runtime_error("Cannot allocate a stateless_integer_add");
return 0; // suppress warnings return &foo; // suppress warnings
} }
void operator delete(void*, stateless_integer_add*) throw() void operator delete(void*, stateless_integer_add*) throw()