From 119360df4ca503016793afc3d8264d29a4cf9392 Mon Sep 17 00:00:00 2001 From: alimcmaster1 Date: Sun, 2 Feb 2020 17:09:18 +0000 Subject: [PATCH] BUG: objToJson.c - fix return value (#31482) --- 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 801d97b777e00..16d9d341f785d 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -128,7 +128,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 62c2870c198c4..da85196550c9f 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -177,6 +177,8 @@ void *initObjToJSON(void) { /* Initialise numpy API */ import_array(); + // GH 31463 + return NULL; } static TypeContext *createTypeContext(void) {