]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-131296: fix clang-cl warning on Windows in pegen.h (#131584)
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Tue, 15 Apr 2025 16:01:42 +0000 (18:01 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Apr 2025 16:01:42 +0000 (17:01 +0100)
Parser/pegen.h

index 651659ac6c926ba2689078ef3186d9904ed4e22f..37d6ea988d2af4776ef59659d42d964f55382fcc 100644 (file)
@@ -170,7 +170,7 @@ void *_PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
 void _Pypegen_set_syntax_error(Parser* p, Token* last_token);
 void _Pypegen_stack_overflow(Parser *p);
 
-Py_LOCAL_INLINE(void *)
+static inline void *
 RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype,
                            Py_ssize_t lineno, Py_ssize_t col_offset,
                            Py_ssize_t end_lineno, Py_ssize_t end_col_offset,