summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-31 10:24:51 -0500
committerTingPing <tingping@tingping.se>2014-12-31 10:24:51 -0500
commit1fa4a000e7e1855e1d99bd6fbbb8067df8e90839 (patch)
tree38c6985be0f664828e6d55a0535dc3fb20958792 /src/common
parent448cc962cd019adc31e28eb4f96d3b1fad5d6efc (diff)
Fix some unused warnings
Diffstat (limited to 'src/common')
-rw-r--r--src/common/plugin.c2
-rw-r--r--src/common/proto-irc.c6
-rw-r--r--src/common/text.c2
3 files changed, 1 insertions, 9 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index bdb11bb8..1cc393ea 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -1557,7 +1557,7 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
 		case 0x5cfee87:	/* flags */
 			/* used if text_strip is unset */                    /* 16 */
 			tmp <<= 1;
-			tmp = ((struct session *)data)->text_strip;          /* 15 */
+			tmp |= ((struct session *)data)->text_strip;          /* 15 */
 			tmp <<= 1;
 			/* used if text_scrollback is unset */               /* 14 */
 			tmp <<= 1;
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index f6b7cd9f..cdab4c21 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -816,10 +816,7 @@ process_numeric (session * sess, int n,
 	case 349:	/* end of exemption list */
 		sess = find_channel (serv, word[4]);
 		if (!sess)
-		{
-			sess = serv->front_session;
 			goto def;
-		}
 		if (!fe_ban_list_end (sess, 349))
 			goto def;
 		break;
@@ -844,10 +841,7 @@ process_numeric (session * sess, int n,
 	case 368:
 		sess = find_channel (serv, word[4]);
 		if (!sess)
-		{
-			sess = serv->front_session;
 			goto def;
-		}
 		if (!fe_ban_list_end (sess, 368))
 			goto def;
 		break;
diff --git a/src/common/text.c b/src/common/text.c
index 0bee65be..729f18dd 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -1897,7 +1897,6 @@ pevt_build_string (const char *input, char **output, int *max_arg)
 		if (d == 'a')
 		{
 			/* Hex value */
-			x = 0;
 			if (ii == len)
 				goto a_len_error;
 			d = i[ii++];
@@ -1986,7 +1985,6 @@ pevt_build_string (const char *input, char **output, int *max_arg)
 		base = s;
 	if (last != NULL)
 		last->next = s;
-	last = s;
 	s->next = NULL;
 	s->data = g_malloc (1);
 	s->len = 1;