[NeoStats-Devel] [Commits] r90 - branches/3.0

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Fish
Date: Fri Jul  1 17:42:15 2005
New Revision: 90

Modified:
   branches/3.0/TriviaCmds.c
   branches/3.0/TriviaServ.c
   branches/3.0/configure
   branches/3.0/configure.in
Log:
Kill compiler warnings

Modified: branches/3.0/TriviaCmds.c
==============================================================================
--- branches/3.0/TriviaCmds.c	(original)
+++ branches/3.0/TriviaCmds.c	Fri Jul  1 17:42:15 2005
@@ -488,7 +488,7 @@
 		irc_prefmsg (tvs_bot, cmdparams->source, "Trivia Channel:");
 		hash_scan_begin(&hs, tch);
 		i = 0;
-		while (hnode = hash_scan_next(&hs)) 
+		while ((hnode = hash_scan_next(&hs))) 
 		{
 			tc = hnode_get(hnode);
 			i++;

Modified: branches/3.0/TriviaServ.c
==============================================================================
--- branches/3.0/TriviaServ.c	(original)
+++ branches/3.0/TriviaServ.c	Fri Jul  1 17:42:15 2005
@@ -156,7 +156,7 @@
 		return NS_FAILURE;
 	irc_chanalert (tvs_bot, "Successfully Started, %ld questions loaded", TriviaServ.Questions);
 	hash_scan_begin(&hs, tch);
-	while (hnodes = hash_scan_next(&hs)) 
+	while ((hnodes = hash_scan_next(&hs)) != NULL) 
 	{
 		tc = hnode_get(hnodes);
 		c = FindChannel (tc->name);
@@ -233,7 +233,7 @@
 
 	SaveAllUserScores();
 	hash_scan_begin(&hs, tch);
-	while (hnodes = hash_scan_next(&hs)) 
+	while ((hnodes = hash_scan_next(&hs))) 
 	{
 		tc = hnode_get(hnodes);
 		if (tc->c) 
@@ -416,7 +416,7 @@
 	if (!(rand() % 4)) 
 		srand((unsigned int)me.now);
 	hash_scan_begin(&hs, tch);
-	while (hnodes = hash_scan_next(&hs)) 
+	while ((hnodes = hash_scan_next(&hs))) 
 	{
 		tc = hnode_get(hnodes);
 		if ((tc->c) && (tc->active == 1)) 
@@ -487,7 +487,7 @@
 	 */ 
 	/* clear channel scores if needed */
 	hash_scan_begin(&hs, tch);
-	while (hnodes = hash_scan_next(&hs)) 
+	while ((hnodes = hash_scan_next(&hs))) 
 	{
 		tc = hnode_get(hnodes);
 		if (tc) 

Modified: branches/3.0/configure
==============================================================================
--- branches/3.0/configure	(original)
+++ branches/3.0/configure	Fri Jul  1 17:42:15 2005
@@ -1279,7 +1279,7 @@
 
 DIRINST=~/NeoStats3.0/
 
-CFLAGS="$CFLAGS -O2"
+CFLAGS="$CFLAGS -O2 -fno-strict-aliasing"
 
 case "$host_os" in
 *openbsd*)

Modified: branches/3.0/configure.in
==============================================================================
--- branches/3.0/configure.in	(original)
+++ branches/3.0/configure.in	Fri Jul  1 17:42:15 2005
@@ -13,7 +13,7 @@
 AC_DEFINE_UNQUOTED(MODULE_REV, "$MODULE_REV")
 DIRINST=~/NeoStats3.0/
 AC_PREFIX_DEFAULT(~/NeoStats3.0/)
-CFLAGS="$CFLAGS -O2"
+CFLAGS="$CFLAGS -O2 -fno-strict-aliasing"
 
 case "$host_os" in
 *openbsd*)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.