Project

General

Profile

Bug #253 ยป 0002-Fix-GCC-warnings.patch

Pierre-Louis Bonicoli, 2011-10-04 00:28

View differences:

src/bip.c
1570 1570
	hash_iterator_t it;
1571 1571
	hash_iterator_t lit;
1572 1572
	char buf[RET_STR_LEN + 1];
1573
	connection_t *c;
1574

  
1575
	c = CONN(ic);
1576 1573

  
1577 1574
	bip_notify(ic, "-- User list");
1578 1575
	for (hash_it_init(&_bip->users, &it); hash_it_item(&it);
......
1620 1617
{
1621 1618
	hash_iterator_t it;
1622 1619
	char buf[RET_STR_LEN + 1];
1623
	connection_t *c;
1624

  
1625
	c = CONN(ic);
1626 1620

  
1627 1621
	bip_notify(ic, "-- Network list (* means SSL):");
1628 1622
	for (hash_it_init(&_bip->networks, &it); hash_it_item(&it);
......
1669 1663
void adm_list_connections(struct link_client *ic, struct bipuser *bu)
1670 1664
{
1671 1665
	hash_iterator_t it;
1672
	connection_t *c;
1673 1666

  
1674
	c = CONN(ic);
1675 1667
	if (!bu) {
1676 1668
		bip_notify(ic, "-- Your connections:");
1677 1669
		bu = LINK(ic)->user;
src/connection.c
1090 1090
}
1091 1091

  
1092 1092
/* ripped from postfix's tls_dh.c */
1093
static DH *tmp_dh_cb(SSL *ssl_unused, int export, int keylength)
1093
static DH *tmp_dh_cb(SSL *ssl_unused __attribute__((unused)),
1094
		     int export, int keylength)
1094 1095
{
1095 1096
	DH *ret;
1096 1097

  
......
1351 1352
	ERR_print_errors(errbio);
1352 1353

  
1353 1354
	if (err2 == SSL_ERROR_NONE) {
1354
		SSL_CIPHER *cipher;
1355
		const SSL_CIPHER *cipher;
1355 1356
		char buf[128];
1356 1357
		int len;
1357 1358

  
src/irc.c
308 308
	return OK_COPY_WHO;
309 309
}
310 310

  
311
static int irc_315(struct link_server *server, struct line *l)
311
static int irc_315(struct link_server *server,
312
		   struct line *l __attribute__((unused)))
312 313
{
313 314
	struct link *link = LINK(server);
314 315
	if (link->who_client) {
......
325 326
				link->who_client, link->who_client->who_count);
326 327
		}
327 328
	}
328
	l = NULL; /* keep gcc happy */
329 329

  
330 330
	return OK_COPY_WHO;
331 331
}
......
1455 1455
}
1456 1456

  
1457 1457
/* same as irc_315 */
1458
static int irc_368(struct link_server *server, struct line *l)
1458
static int irc_368(struct link_server *server,
1459
		   struct line *l __attribute__((unused)))
1459 1460
{
1460 1461
	struct link *link = LINK(server);
1461 1462
	if (link->who_client) {
......
1473 1474
				link->who_client, link->who_client->who_count);
1474 1475
		}
1475 1476
	}
1476
	l = NULL; /* keep gcc happy */
1477 1477

  
1478 1478
	return OK_COPY_WHO;
1479 1479
}
src/lex.l
1
%option nounput noinput
1 2
%{
2 3
/*
3 4
 * $Id: lex.l,v 1.23 2005/04/12 19:34:35 nohar Exp $
src/log.c
655 655

  
656 656
void log_connected(log_t *logdata)
657 657
{
658
	logstore_t *store;
659 658
	hash_iterator_t hi;
660 659

  
661 660
	snprintf(logdata->buffer, LOGLINE_MAXLEN, "%s -!- Connected to"
662 661
			" server...", timestamp());
663 662
	for (hash_it_init(&logdata->logfgs, &hi); hash_it_item(&hi);
664 663
			hash_it_next(&hi)) {
665
		store = hash_it_item(&hi);
666 664
		log_write(logdata, hash_it_key(&hi), logdata->buffer);
667 665
	}
668 666
}
669
- 
    (1-1/1)