mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
hack to to make the nomalloc unit test compiles with -pedantic
This commit is contained in:
parent
42ad9c4352
commit
60726f91a9
@ -22,11 +22,10 @@
|
|||||||
// License and a copy of the GNU General Public License along with
|
// License and a copy of the GNU General Public License along with
|
||||||
// Eigen. If not, see <http://www.gnu.org/licenses/>.
|
// Eigen. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
#define throw(X)
|
||||||
#define EIGEN_DONT_VECTORIZE 1
|
#define EIGEN_DONT_VECTORIZE 1
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
// #define CUSTOM_NEW_DELETE(TYPE)
|
|
||||||
|
|
||||||
void* operator new[] (size_t n)
|
void* operator new[] (size_t n)
|
||||||
{
|
{
|
||||||
ei_assert(false && "operator new should never be called with fixed size path");
|
ei_assert(false && "operator new should never be called with fixed size path");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user