mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix issue #1968. Don't discard return value from "new" in C++17.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user