|
@@ -1756,7 +1756,10 @@ void cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)
|
|
|
{
|
|
|
cJSON_free(item->string);
|
|
|
}
|
|
|
+#pragma GCC diagnostic push
|
|
|
+#pragma GCC diagnostic ignored "-Wcast-qual"
|
|
|
item->string = (char*)string;
|
|
|
+#pragma GCC diagnostic pop
|
|
|
item->type |= cJSON_StringIsConst;
|
|
|
cJSON_AddItemToArray(object, item);
|
|
|
}
|