mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
relay: fix compiler warnings when cJSON is disabled
This commit is contained in:
@@ -40,7 +40,9 @@ relay_info_info_relay_api_version_cb (const void *pointer, void *data,
|
||||
const char *info_name,
|
||||
const char *arguments)
|
||||
{
|
||||
#ifdef HAVE_CJSON
|
||||
char version[128];
|
||||
#endif
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -65,7 +67,9 @@ relay_info_info_relay_api_version_number_cb (const void *pointer, void *data,
|
||||
const char *info_name,
|
||||
const char *arguments)
|
||||
{
|
||||
#ifdef HAVE_CJSON
|
||||
char version_number[32];
|
||||
#endif
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
|
||||
Reference in New Issue
Block a user