close Warning: Failed to sync with repository "(default)": [Errno 12] Cannot allocate memory; repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
Modify

#193 closed defect (fixed)

[patch] "warning: unused variable `j'" when ipv6 disabled

Reported by: Michał Nazarewicz <mina86@…> Owned by:
Priority: minor Milestone:
Component: BitlBee Version: 1.0.3
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:

Description

The warning message really annoys me... ;)

irc.c: In function `irc_new':
irc.c:43: warning: unused variable `j'

Patch:

--- bitlbee-1.0.3.orig/irc.c	2006-07-30 12:53:49.000000000 +0000
+++ bitlbee-1.0.3/irc.c	2006-08-04 16:06:27.000000000 +0000
@@ -36,7 +36,8 @@
 	struct sockaddr_in sock[1];
+	unsigned int i;
 #ifdef IPV6
 	struct sockaddr_in6 sock6[1];
+	unsigned int j;
 #endif
 	struct hostent *peer;
-	unsigned int i, j;
 	

Attachments (0)

Change History (1)

comment:1 Changed at 2006-10-22T13:59:49Z by wilmer

Resolution: fixed
Status: newclosed

:-D

This problem isn't there in -devel, did some work on the IPv6-specific stuff some time ago. The 1.0.x tree won't get any more releases, so this patch won't be necessary.

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.