From ee7d19680e185cff2ec560e6fa9f42fe7c7f81e3 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Mon, 28 Oct 2024 21:50:30 +0800 Subject: [PATCH] Remove `register` macro in Ginac C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xkeycheck.h(341): warning C4005: 'register': macro redefinition ../src/sage/symbolic/ginac/constant.cpp(23): note: see previous definition of 'register' C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xkeycheck.h(343): fatal error C1189: #error: The C++ Standard Library forbids macroizing the keyword "register". Enable warning C4005 to find the forbidden define. --- src/sage/symbolic/ginac/constant.cpp | 1 - src/sage/symbolic/ginac/ex.cpp | 1 - src/sage/symbolic/ginac/fderivative.cpp | 1 - src/sage/symbolic/ginac/function.cpp | 1 - src/sage/symbolic/ginac/inifcns_hyperg.cpp | 1 - src/sage/symbolic/ginac/numeric.cpp | 1 - 6 files changed, 6 deletions(-) diff --git a/src/sage/symbolic/ginac/constant.cpp b/src/sage/symbolic/ginac/constant.cpp index 64e225f0213..f768e021c4e 100644 --- a/src/sage/symbolic/ginac/constant.cpp +++ b/src/sage/symbolic/ginac/constant.cpp @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define register #include #include "py_funcs.h" #include "constant.h" diff --git a/src/sage/symbolic/ginac/ex.cpp b/src/sage/symbolic/ginac/ex.cpp index a4783ab0c8b..d4f077153dc 100644 --- a/src/sage/symbolic/ginac/ex.cpp +++ b/src/sage/symbolic/ginac/ex.cpp @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define register #include #include "ex.h" #include "ex_utils.h" diff --git a/src/sage/symbolic/ginac/fderivative.cpp b/src/sage/symbolic/ginac/fderivative.cpp index a47db8823f3..8621ba598a8 100644 --- a/src/sage/symbolic/ginac/fderivative.cpp +++ b/src/sage/symbolic/ginac/fderivative.cpp @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define register #include #include "py_funcs.h" #include "fderivative.h" diff --git a/src/sage/symbolic/ginac/function.cpp b/src/sage/symbolic/ginac/function.cpp index 67d608c6240..62824b46946 100644 --- a/src/sage/symbolic/ginac/function.cpp +++ b/src/sage/symbolic/ginac/function.cpp @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define register #define PY_SSIZE_T_CLEAN #include #include "py_funcs.h" diff --git a/src/sage/symbolic/ginac/inifcns_hyperg.cpp b/src/sage/symbolic/ginac/inifcns_hyperg.cpp index 1ad2ff785b1..a1c037fc96d 100644 --- a/src/sage/symbolic/ginac/inifcns_hyperg.cpp +++ b/src/sage/symbolic/ginac/inifcns_hyperg.cpp @@ -23,7 +23,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define register #include #include "py_funcs.h" #include "inifcns.h" diff --git a/src/sage/symbolic/ginac/numeric.cpp b/src/sage/symbolic/ginac/numeric.cpp index a9bbfba9e15..e973390ffa2 100644 --- a/src/sage/symbolic/ginac/numeric.cpp +++ b/src/sage/symbolic/ginac/numeric.cpp @@ -49,7 +49,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define register #define PY_SSIZE_T_CLEAN #include #include "flint/fmpz.h"