From a4ebd57786ddbdc1612cb392ddc8cfcbd233357a Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Thu, 6 Jun 2024 09:41:18 +0200 Subject: [PATCH] Fixed incorrect return type of raise_from() (#238) Fixes #236. --- docs/versionhistory.rst | 4 ++++ source/decoder.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index c8566ca..89c53e7 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -5,6 +5,10 @@ Version history This library adheres to `Semantic Versioning `_. +**UNRELEASED** + +- Fixed compilation of C extension failing on GCC 14 + **5.6.3** (2024-04-11) - Fixed decoding of epoch-based dates being affected by the local time zone in the C extension diff --git a/source/decoder.c b/source/decoder.c index 6fd74ce..bd7fa47 100644 --- a/source/decoder.c +++ b/source/decoder.c @@ -348,7 +348,7 @@ _CBORDecoder_get_immutable(CBORDecoderObject *self, void *closure) // Utility functions ///////////////////////////////////////////////////////// -static int +static void raise_from(PyObject *new_exc_type, const char *message) { // This requires the error indicator to be set PyObject *cause;