summary refs log tree commit diff stats
path: root/src/common/plugin.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-04-14 13:15:10 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-04-14 13:15:10 +0200
commitdd624950c60347e25d30fdf8b0194a895a3360e3 (patch)
tree29acdf0db7205de4918d5af22bc177791316cbb3 /src/common/plugin.c
parentb407bfa168e198acc7f9931754a06781f45824d7 (diff)
Eliminate compiler warning
Diffstat (limited to 'src/common/plugin.c')
-rw-r--r--src/common/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index 08198cb6..349c76c4 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -368,10 +368,12 @@ plugin_load (session *sess, char *filename, char *arg)
 {
 	void *handle;
 	char *pluginpath;
-	char *error;
 	char *filepart;
 	hexchat_init_func *init_func;
 	hexchat_deinit_func *deinit_func;
+#ifndef USE_GMODULE
+	char *error;
+#endif
 
 	/* get the filename without path */
 	filepart = file_part (filename);