mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-30 02:05:18 +08:00
Fix issue #1968. Don't discard return value from "new" in C++17.
This commit is contained in:
parent
7c5d48f313
commit
5636f80d11
@ -82,7 +82,7 @@ inline void throw_std_bad_alloc()
|
|||||||
//
|
//
|
||||||
new int[huge];
|
new int[huge];
|
||||||
#else
|
#else
|
||||||
::operator new(huge);
|
void* unused = ::operator new(huge);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user