diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 23:46:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 23:46:52 +0200 |
commit | 8d86d85b66e5a185c8a4dda51cb257bd9c47969b (patch) | |
tree | dc2fa364bd72e857a02ad2e60911820f1e1f7596 | |
parent | 5a8751b9eb6bf34ef602a0d81f8d982dffa73143 (diff) | |
download | weechat-8d86d85b66e5a185c8a4dda51cb257bd9c47969b.zip |
relay: fix compiler warnings when cJSON is disabled
-rw-r--r-- | src/plugins/relay/relay-info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-info.c b/src/plugins/relay/relay-info.c index 12450f0fa..b741ad3a8 100644 --- a/src/plugins/relay/relay-info.c +++ b/src/plugins/relay/relay-info.c @@ -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; |