From 5062d85a516d626b8242abe4db18e03bc811f50c Mon Sep 17 00:00:00 2001 From: alimcmaster1 Date: Sun, 2 Feb 2020 17:09:18 +0000 Subject: [PATCH] Backport PR #31482: BUG: objToJson.c - fix return value --- doc/source/whatsnew/v1.0.1.rst | 2 +- pandas/_libs/src/ujson/python/objToJSON.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 9e78ff03f5f67..31bc1cefcb292 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -126,7 +126,7 @@ ExtensionArray Other ^^^^^ -- +- Regression fixed in objTOJSON.c fix return-type warning (:issue:`31463`) - .. --------------------------------------------------------------------------- diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index c5ac279ed3243..5c5b80648aed1 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -178,6 +178,8 @@ void *initObjToJSON(void) { /* Initialise numpy API */ import_array(); + // GH 31463 + return NULL; } static TypeContext *createTypeContext(void) {