bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses-5.2: compilation warnings


From: Nelson H. F. Beebe
Subject: ncurses-5.2: compilation warnings
Date: Tue, 20 Feb 2001 17:27:25 -0700 (MST)

Builds of ncurses-5.2 with native UNIX compilers produced a few
warnings about unused variables that minor code changes could remove:

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I../progs -I.  -I. -I../include 
-I/usr/local/include -DHAVE_CONFIG_H  -c ../progs/infocmp.c
cc-1552 c89: WARNING File = ../progs/infocmp.c, Line = 713
  The variable "tails" is set but never used.

      ENTRY *tails[MAXCOMPARE];
             ^
c89 -mips3 -O3 ../objects/tput.o -L../lib -L/usr/local/lib -lncurses      -o 
tput
------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I../progs -I.  -I. -I../include 
-I/usr/local/include -DHAVE_CONFIG_H  -c ../progs/tset.c
cc-1552 c89: WARNING File = ../progs/tset.c, Line = 162
  The variable "nw" is set but never used.

      register int fd, nr, nw;
                           ^

cc-1552 c89: WARNING File = ../progs/tset.c, Line = 498
  The variable "rval" is set but never used.

      int rval, errret;
          ^
------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -DHAVE_CONFIG_H -I../tack -I.  -I. -I../include 
-I/usr/local/include  -c ../tack/ansi.c
cc-1164 c89: WARNING File = ../tack/ansi.c, Line = 138
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        read_key(ansi_buf, sizeof(ansi_buf));
                 ^

cc-1515 c89: WARNING File = ../tack/ansi.c, Line = 188
  A value of type "unsigned char *" cannot be assigned to an entity of type
          "char *".

        s = pack_buf + 1;
          ^

cc-1164 c89: WARNING File = ../tack/ansi.c, Line = 265
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                s = expand(ansi_buf);
                           ^

cc-1164 c89: WARNING File = ../tack/ansi.c, Line = 332
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                                s = expand(&ansi_buf[j]);
                                           ^

cc-1164 c89: WARNING File = ../tack/ansi.c, Line = 435
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                                        s = expand(ansi_buf);
                                                   ^
------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -DHAVE_CONFIG_H -I../tack -I.  -I. -I../include 
-I/usr/local/include  -c ../tack/edit.c
cc-1552 c89: WARNING File = ../tack/edit.c, Line = 566
  The variable "i" is set but never used.

        int ch, i, j;
                ^

cc-1552 c89: WARNING File = ../tack/edit.c, Line = 600
  The variable "i" is set but never used.

        int ch, i, j;
                ^

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I. -I../include -I/usr/local/include 
-DHAVE_CONFIG_H  -c ../panel/panel.c
cc-1174 c89: WARNING File = ../panel/panel.c, Line = 134
  The variable "dummy" was declared but never referenced.

       static char GCC_UNUSED dummy;
                              ^
------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I. -I../include -I/usr/local/include 
-DHAVE_CONFIG_H  -c ../panel/p_bottom.c
cc-1209 c89: WARNING File = ../panel/p_bottom.c, Line = 52
  The controlling expression is constant.

        HIDE_PANEL(pan,err,FALSE);
        ^

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I. -I../include -I/usr/local/include 
-DHAVE_CONFIG_H  -c ../panel/p_delete.c
cc-1209 c89: WARNING File = ../panel/p_delete.c, Line = 48
  The controlling expression is constant.

        HIDE_PANEL(pan,err,FALSE);
        ^

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I. -I../include -I/usr/local/include 
-DHAVE_CONFIG_H  -c ../panel/p_hide.c
cc-1209 c89: WARNING File = ../panel/p_hide.c, Line = 52
  The controlling expression is constant.

    HIDE_PANEL(pan,err,TRUE);
    ^

cc-1209 c89: WARNING File = ../panel/p_move.c, Line = 48
  The controlling expression is constant.

      PANEL_UPDATE(pan,(PANEL*)0, TRUE);
      ^

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I. -I../include -I/usr/local/include 
-DHAVE_CONFIG_H  -c ../panel/p_replace.c
cc-1209 c89: WARNING File = ../panel/p_replace.c, Line = 48
  The controlling expression is constant.

      PANEL_UPDATE(pan,(PANEL*)0, TRUE);
      ^

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I. -I../include -I/usr/local/include 
-DHAVE_CONFIG_H  -c ../panel/p_show.c
cc-1209 c89: WARNING File = ../panel/p_show.c, Line = 54
  The controlling expression is constant.

    HIDE_PANEL(pan,err,FALSE);
    ^

cc-1552 c89: WARNING File = ../panel/p_show.c, Line = 44
  The variable "err" is set but never used.

    int err = OK;
        ^

------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I../test -I.  -I. -I../include 
-I/usr/local/include -DHAVE_CONFIG_H  -c ../test/filter.c
cc-1552 c89: WARNING File = ../test/filter.c, Line = 72
  The variable "sp" is set but never used.

      SCREEN *sp;
              ^
------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I../test -I.  -I. -I../include 
-I/usr/local/include -DHAVE_CONFIG_H  -c ../test/ncurses.c
cc-1552 c89: WARNING File = ../test/ncurses.c, Line = 256
  The variable "x" is set but never used.

      int y, x;
             ^

cc-1552 c89: WARNING File = ../test/ncurses.c, Line = 1203
  The variable "y" is set but never used.

      int y, x;
          ^
------------------------------------------------------------------------
cd ../objects;  c89 -mips3 -O3 -I../test -I.  -I. -I../include 
-I/usr/local/include -DHAVE_CONFIG_H  -c ../test/testcurs.c
cc-1552 c89: WARNING File = ../test/testcurs.c, Line = 200
  The variable "OldX" is set but never used.

      int OldX, OldY;
          ^
------------------------------------------------------------------------

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: address@hidden  -
- Department of Mathematics, 322 INSCC      address@hidden  address@hidden -
- 155 S 1400 E RM 233                       address@hidden                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]