cJSON: remove warning about prototype
authorsunghan <sh924.chang@samsung.com>
Wed, 20 Sep 2017 06:06:34 +0000 (15:06 +0900)
committersunghan <sh924.chang@samsung.com>
Wed, 20 Sep 2017 06:06:34 +0000 (15:06 +0900)
Some functions of cJSON did not have a prototype. This can sometimes
cause a warning when building.

Change-Id: If47338e11f13a77f2a5d2283160245fa4868cfec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
external/include/json/cJSON.h

index ca28f34..f972fce 100644 (file)
@@ -177,18 +177,18 @@ cJSON *cJSON_GetObjectItem(cJSON *object, const char *string);
  * Defined when cJSON_Parse() returns 0. 0 when cJSON_Parse() succeeds.
  */
 
-const char *cJSON_GetErrorPtr();
+const char *cJSON_GetErrorPtr(void);
 
 /* These calls create a cJSON item of the appropriate type. */
 
-cJSON *cJSON_CreateNull();
-cJSON *cJSON_CreateTrue();
-cJSON *cJSON_CreateFalse();
+cJSON *cJSON_CreateNull(void);
+cJSON *cJSON_CreateTrue(void);
+cJSON *cJSON_CreateFalse(void);
 cJSON *cJSON_CreateBool(int b);
 cJSON *cJSON_CreateNumber(double num);
 cJSON *cJSON_CreateString(const char *string);
-cJSON *cJSON_CreateArray();
-cJSON *cJSON_CreateObject();
+cJSON *cJSON_CreateArray(void);
+cJSON *cJSON_CreateObject(void);
 
 /* These utilities create an Array of count items. */