1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] GCC3
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20GCC3&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000320.html">
11 <LINK REL=
"Next" HREF=
"000322.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] GCC3
</H1>
15 <B>Mark Hetherington
</B>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20GCC3&In-Reply-To="
17 TITLE=
"[IRCServices Coding] GCC3">mark at ctcp.net
19 <I>Sun Feb
24 14:
32:
24 PST
2002</I>
21 <LI>Previous message:
<A HREF=
"000320.html">[IRCServices Coding] GCC3
23 <LI>Next message:
<A HREF=
"000322.html">[IRCServices Coding] GCC3
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#321">[ date ]
</a>
27 <a href=
"thread.html#321">[ thread ]
</a>
28 <a href=
"subject.html#321">[ subject ]
</a>
29 <a href=
"author.html#321">[ author ]
</a>
34 <PRE>><i> Finny Merrill wrote:
35 </I>><i> However, it does give two warnings: it says the multi-line string
36 </I>><i> literal in init.c is depreciated (that's true, it's not iso OR posix
37 </I>><i> C) and it says that in do_dropnick, ngi might be used uninitialized
38 </I>><i> (the syntax raises my hackles a bit, but indeed it is always initial-
39 </I>><i> ized when used)
41 IIRC the warning about
"ngi might be used uninitialised
" is not merely a
42 GCC
3.0 error since I have been seeing it for a while.
44 It occurs because of the way the code initialises ngi within an if
45 condition where another condition that must be true is also involved.
47 Personally, I would fix such a warning since it would be a legitimate
48 operation for the compiler to generate code that could skip the
49 initialisation of ngi.
51 The particular line in question is:
53 if (ni-
>nickgroup
&& !(ngi = get_ngi(ni)))
55 Should ni-
>nickgroup be zero, the compiler could have output code which
56 would skip the initialisation of ngi since it would not pass an AND
57 operation leading to a later illegal acces to ngi.
70 <LI>Previous message:
<A HREF=
"000320.html">[IRCServices Coding] GCC3
72 <LI>Next message:
<A HREF=
"000322.html">[IRCServices Coding] GCC3
74 <LI> <B>Messages sorted by:
</B>
75 <a href=
"date.html#321">[ date ]
</a>
76 <a href=
"thread.html#321">[ thread ]
</a>
77 <a href=
"subject.html#321">[ subject ]
</a>
78 <a href=
"author.html#321">[ author ]
</a>