File Unreal3.2.9_compiler_warnings.patch of Package unrealircd
Index: include/struct.h
===================================================================
--- include/struct.h.orig
+++ include/struct.h
@@ -1289,7 +1289,7 @@ struct _configitem_link {
};
typedef enum {
- CGIIRC_PASS=1, CGIIRC_WEBIRC=2
+ CGIIRC_UNKNOWN=0, CGIIRC_PASS=1, CGIIRC_WEBIRC=2
} CGIIRCType;
struct _configitem_cgiirc {
Index: src/s_conf.c
===================================================================
--- src/s_conf.c.orig
+++ src/s_conf.c
@@ -6849,7 +6849,7 @@ int _test_cgiirc(ConfigFile *conf, Confi
char has_type = 0; /* mandatory */
char has_hostname = 0; /* mandatory */
char has_password = 0; /* mandatory */
- CGIIRCType type;
+ CGIIRCType type = CGIIRC_UNKNOWN;
for (cep = ce->ce_entries; cep; cep = cep->ce_next)
{
@@ -7617,7 +7617,7 @@ int _conf_set(ConfigFile *conf, ConfigEn
tempiConf.ssl_options |= ofl->flag;
}
if (tempiConf.ssl_options & SSLFLAG_DONOTACCEPTSELFSIGNED)
- if (!tempiConf.ssl_options & SSLFLAG_VERIFYCERT)
+ if (!(tempiConf.ssl_options & SSLFLAG_VERIFYCERT))
tempiConf.ssl_options |= SSLFLAG_VERIFYCERT;
}
Index: src/modules/m_map.c
===================================================================
--- src/modules/m_map.c.orig
+++ src/modules/m_map.c
@@ -130,7 +130,7 @@ static void dump_map(aClient *cptr, aCli
continue;
if (acptr->srvptr != server)
continue;
- if (!acptr->flags & FLAGS_MAP)
+ if (!(acptr->flags & FLAGS_MAP))
continue;
if (--cnt == 0)
*p = '`';