gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang test_c[pp]ext tests (GH-130692)

Disable pedantic check for c++03 (unlimited API)

Also add a check for c++03 *limited* API, which passes in pedantic mode
after removing a comma in the `PySendResult` declaration, and allowing
`long long`.
This commit is contained in:
Petr Viktorin 2025-03-04 14:10:09 +01:00 committed by GitHub
parent 6c48ed7d62
commit d91cc9db15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 75 additions and 1 deletions

View file

@ -683,7 +683,7 @@ PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */
typedef enum {
PYGEN_RETURN = 0,
PYGEN_ERROR = -1,
PYGEN_NEXT = 1,
PYGEN_NEXT = 1
} PySendResult;
#endif