]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000321.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000321.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] GCC3
5 </TITLE>
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">
12 </HEAD>
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
18 </A><BR>
19 <I>Sun Feb 24 14:32:24 PST 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000320.html">[IRCServices Coding] GCC3
22 </A></li>
23 <LI>Next message: <A HREF="000322.html">[IRCServices Coding] GCC3
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>&gt;<i> Finny Merrill wrote:
35 </I>&gt;<i> However, it does give two warnings: it says the multi-line string
36 </I>&gt;<i> literal in init.c is depreciated (that's true, it's not iso OR posix
37 </I>&gt;<i> C) and it says that in do_dropnick, ngi might be used uninitialized
38 </I>&gt;<i> (the syntax raises my hackles a bit, but indeed it is always initial-
39 </I>&gt;<i> ized when used)
40 </I>
41 IIRC the warning about &quot;ngi might be used uninitialised&quot; is not merely a
42 GCC 3.0 error since I have been seeing it for a while.
43
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.
46
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.
50
51 The particular line in question is:
52
53 if (ni-&gt;nickgroup &amp;&amp; !(ngi = get_ngi(ni)))
54
55 Should ni-&gt;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.
58
59 --
60 Mark.
61
62
63
64 </PRE>
65
66 <!--endarticle-->
67 <HR>
68 <P><UL>
69 <!--threads-->
70 <LI>Previous message: <A HREF="000320.html">[IRCServices Coding] GCC3
71 </A></li>
72 <LI>Next message: <A HREF="000322.html">[IRCServices Coding] GCC3
73 </A></li>
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>
79 </LI>
80 </UL>
81
82 </body></html>