[Python-bugs-list] [ python-Bugs-417587 ] compiler warnings compiling 2.1

noreply@sourceforge.net noreply@sourceforge.net
Fri, 20 Apr 2001 19:47:37 -0700


Bugs item #417587, was updated on 2001-04-20 02:42
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417587&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Nobody/Anonymous (nobody)
Summary: compiler warnings compiling 2.1

Initial Comment:
I get a whole bunch of compiler warnings when compiling 
the stock Python-2.1 on SGI IRIX 6.5.11m.  These 
warnings are innocuous, but I feel that many of them 
should be fixed anyway.  I particularly dislike code 
where a goto or return is immediately followed by 
break.  There is just *no way* the flow of control can 
get to that break and I feel that it betrays 
uncertainty in the programmer.

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2001-04-20 19:47

Message:
Logged In: YES 
user_id=31435

Sjoerd, it would be much more helpful if you submitted a 
patch.  We don't have an SGI IRIX 6.5.11m box to compile 
on, so can't tell whether we've fixed anything.  We have 
a "no compiler warnings!" policy that I enforce under the 
Windows build, and so I don't see *any* warnings in the 2.1 
build.

I fixed the most egregious ones where fixes were obviously 
harmless, checked in as

mmapmodule.c new revision: 2.28
unicodeobject.c new revision: 2.86
tokenizer.c new revision: 2.50
ceval.c new revision: 2.240


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417587&group_id=5470