Disable deprecated warnings in SVD tests.

(cherry picked from commit f0b81fefb7)
This commit is contained in:
Antonio Sánchez
2022-02-23 18:32:00 +00:00
committed by C. Antonio Sanchez
parent 0a5abc042e
commit bb1dbb4df6
3 changed files with 26 additions and 8 deletions

View File

@@ -8,6 +8,13 @@
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// We explicitly disable deprecated declarations for this set of tests
// because we purposely verify assertions for the deprecated SVD runtime
// option behavior.
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
// discard stack allocation as that too bypasses malloc
#define EIGEN_STACK_ALLOCATION_LIMIT 0
#define EIGEN_RUNTIME_NO_MALLOC