summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-01-05 14:59:00 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-01-06 14:07:54 +0100
commite87f2e6a463b6bbb77a70cd567a189164eddc5d7 (patch)
treed8336c32f45aa8b69db37e82ee60ddffef7a6839 /src
parentd23b52efdb992a055bf9d3a67cf74f2f4434ef3f (diff)
downloadweechat-e87f2e6a463b6bbb77a70cd567a189164eddc5d7.zip
javascript: fix compiler warning (issue #128)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/javascript/weechat-js.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index ffffba072..59da4cc23 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -281,6 +281,10 @@ weechat_js_load (const char *filename, const char *code)
{
char *source;
+ /* make C compiler happy */
+ /* TODO: implement load of code in Javascript */
+ (void) code;
+
source = weechat_file_get_content (filename);
if (!source)
{