[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules pypcre.c,2.18,2.19

Barry A. Warsaw bwarsaw@beopen.com
Wed, 5 Jul 2000 23:40:15 -0400 (EDT)


>>>>> "TP" == Tim Peters <tim_one@users.sourceforge.net> writes:

    TP> Add more "volatile" decls to stop gcc -Wall warnings.
    TP> Somebody w/ gcc please check that the wngs are gone!

The ones in pypcre.c are gone, but there are still a bunch of other
-Wall warnings, none of which I have time to look at right now.

Here's an excerpt.

-Barry

-------------------- snip snip --------------------
[...]
gcc -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H   -c bufferobject.c -o bufferobject.o
bufferobject.c: In function `PyBuffer_New':
bufferobject.c:174: warning: value computed is not used
gcc -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H   -c classobject.c -o classobject.o
classobject.c: In function `instance_dealloc':
classobject.c:526: warning: unused variable `_Py_RefTotal'
[...]
gcc -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H   -c object.c -o object.o
object.c: In function `_PyTrash_deposit_object':
object.c:1172: warning: unused variable `hold'
[...]
gcc -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H   -c pystate.c -o pystate.o
pystate.c: In function `PyInterpreterState_New':
pystate.c:45: warning: value computed is not used
[...]
gcc  -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H -c ./gcmodule.c
./gcmodule.c: In function `debug_cycle':
./gcmodule.c:295: warning: unsigned int format, long unsigned int arg (arg 5)
./gcmodule.c: In function `collect':
./gcmodule.c:374: warning: int format, long int arg (arg 3)
./gcmodule.c:374: warning: int format, long int arg (arg 4)
./gcmodule.c:374: warning: int format, long int arg (arg 5)
./gcmodule.c:438: warning: int format, long int arg (arg 3)
./gcmodule.c:438: warning: int format, long int arg (arg 4)
[...]
gcc  -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H -c ./posixmodule.c
./posixmodule.c:496: warning: `posix_strint' defined but not used
[...]
gcc -fpic  -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H -c ./linuxaudiodev.c
./linuxaudiodev.c: In function `newladobject':
./linuxaudiodev.c:68: warning: unused variable `opendev'
./linuxaudiodev.c:67: warning: unused variable `ctldev'
./linuxaudiodev.c: At top level:
./linuxaudiodev.c:406: warning: `ins' defined but not used
[...]
gcc -fpic  -DWITH_APPINIT -I/usr/X11R6/include -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H -c ./_tkinter.c
./_tkinter.c: In function `Sleep':
./_tkinter.c:270: warning: unused variable `frac'
./_tkinter.c: In function `Tkapp_DeleteFileHandler':
./_tkinter.c:1595: warning: unused variable `data'
gcc -fpic  -DWITH_APPINIT -I/usr/X11R6/include -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H -c ./tkappinit.c
./tkappinit.c: In function `Tcl_AppInit':
./tkappinit.c:22: warning: `main' is usually a function
[...]
gcc -fpic  -g -Wall -I./../Include -I.. -DHAVE_CONFIG_H -c ./_cursesmodule.c
./_cursesmodule.c: In function `PyCurses_UngetMouse':
./_cursesmodule.c:1646: warning: unused variable `rtn'
./_cursesmodule.c: In function `PyCurses_MouseMask':
./_cursesmodule.c:1950: warning: unused variable `rtn'
./_cursesmodule.c: In function `PyCurses_TypeAhead':
./_cursesmodule.c:2162: warning: unused variable `err'
./_cursesmodule.c: At top level:
./_cursesmodule.c:1478: warning: `PyCurses_resetty' defined but not used
./_cursesmodule.c:1479: warning: `PyCurses_savetty' defined but not used