[Python-bugs-list] [ python-Bugs-445960 ] Compiler warnings on IRIX 6.5

noreply@sourceforge.net noreply@sourceforge.net
Wed, 24 Oct 2001 14:32:15 -0700


Bugs item #445960, was opened at 2001-07-30 07:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445960&group_id=5470

Category: Build
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Greg Ward (gward)
Assigned to: Greg Ward (gward)
Summary: Compiler warnings on IRIX 6.5

Initial Comment:
Building 2.2a1 on IRIX 6.5 with the MIPSPro 7.30 C
compiler results in a handful of minor compiler
warnings.  Some of them are legit, some are compiler
stupidity.  I've just included the warnings here that
look legit to me, ie. it looks like the MIPSPro
compiler is catching an error.

cc-1552 cc: WARNING File = Python/import.c, Line = 857
The variable "f" is set but never used.

struct _frozen *f;
                ^

cc-1552 cc: WARNING File = Python/import.c, Line = 1379
  The variable "mod" is set but never used.

        PyObject *mod;
                    ^

[GW: both variables are only used in "(f = (...)) !=
NULL)" constructs,
 so it looks like the warning is legit and these
variables are unneeded]

cc-1552 cc: WARNING File =
/tmp/Python-2.2a1/Modules/xreadlinesmodule.c, Line = 
174
  The variable "m" is set but never used.

        PyObject *m;
                  ^

cc-1552 cc: WARNING File =
/tmp/Python-2.2a1/Modules/selectmodule.c, Line = 335
  The variable "j" is set but never used.

        int i, j, pos;
               ^


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

>Comment By: Greg Ward (gward)
Date: 2001-10-24 14:32

Message:
Logged In: YES 
user_id=14422

Looks like all the legit warnings caught by the IRIX 6.5
compiler have been fixed.  Said compiler still emits some
warnings, but they're either a) compiler brain-damage or b)
macro complications where there's no obvious "fix" (and it's
not obvious whether the compiler is right or not).

Thus, closing this bug and marking it fixed.


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

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