[Python-bugs-list] [Bug #132787] 2.1a1 compiler warnings under Solaris 8 with gcc

noreply@sourceforge.net noreply@sourceforge.net
Fri, 16 Feb 2001 17:25:57 -0800


Bug #132787, was updated on 2001-Feb-16 17:25
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: mfavas
Assigned to : nobody
Summary: 2.1a1 compiler warnings under Solaris 8 with gcc

Details: Platform: SunOS asafoetida 5.8 Generic_108528-04 sun4u sparc
SUNW,Ultra-60
(actually a 220R server)
Compiler: gcc version 2.95.2 19991024 (release)
2.1a2: CVS version of Feb 16

The following compiler warnings are reported:

gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H  
-o Objects/floatobject.o Objects/floatobject.c
Objects/floatobject.c:35: warning: function declaration isn't a prototype

gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H  
-o Objects/intobject.o Objects/intobject.c
Objects/intobject.c: In function `PyInt_FromString':
Objects/intobject.c:185: warning: subscript has type `char'

gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H  
-o Python/errors.o Python/errors.c
Python/errors.c: In function `PyErr_Format':
Python/errors.c:405: warning: subscript has type `char'
Python/errors.c:460: warning: subscript has type `char'
Python/errors.c:465: warning: subscript has type `char'
Python/errors.c:468: warning: subscript has type `char'

gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H  
-o Python/pythonrun.o Python/pythonrun.c
Python/pythonrun.c: In function `initsigs':
Python/pythonrun.c:1192: warning: function declaration isn't a prototype

gcc -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H   
-c ./Modules/posixmodule.c -o Modules/posixmodule.o
./Modules/posixmodule.c: In function `posix_confstr':
./Modules/posixmodule.c:4524: warning: implicit declaration of function
`confstr'

gcc -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H   
-c ./Modules/signalmodule.c -o Modules/signalmodule.o
./Modules/signalmodule.c:88: warning: function declaration isn't a
prototype
./Modules/signalmodule.c: In function `signal_signal':
./Modules/signalmodule.c:212: warning: function declaration isn't a
prototype
./Modules/signalmodule.c:214: warning: function declaration isn't a
prototype
./Modules/signalmodule.c:225: warning: function declaration isn't a
prototype
./Modules/signalmodule.c: In function `initsignal':
./Modules/signalmodule.c:332: warning: function declaration isn't a
prototype
./Modules/signalmodule.c:336: warning: function declaration isn't a
prototype
./Modules/signalmodule.c:355: warning: function declaration isn't a
prototype
./Modules/signalmodule.c:357: warning: function declaration isn't a
prototype
./Modules/signalmodule.c: In function `finisignal':
./Modules/signalmodule.c:556: warning: function declaration isn't a
prototype
./Modules/signalmodule.c:564: warning: function declaration isn't a
prototype

<gcc compile lines omitted from here down>

Modules/stropmodule.c: In function `strop_atoi':
/export/home0/mark/src/python/CVS/python/dist/src/Modules/stropmodule.c:752:
warning: subscript has type `char'

Modules/timemodule.c: In function `time_strptime':
/export/home0/mark/src/python/CVS/python/dist/src/Modules/timemodule.c:398:
warning: subscript has type `char'

Modules/socketmodule.c: In function `PySocket_socket':
/export/home0/mark/src/python/CVS/python/dist/src/Modules/socketmodule.c:1854:
warning: function declaration isn't a prototype
/export/home0/mark/src/python/CVS/python/dist/src/Modules/socketmodule.c:
In function `PySocket_fromfd':
/export/home0/mark/src/python/CVS/python/dist/src/Modules/socketmodule.c:1892:
warning: function declaration isn't a prototype

In file included from /usr/include/curses.h:23,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/curses.h:5,
from Include/py_curses.h:8,
from Modules/_cursesmodule.c:104:
/usr/include/widec.h:38: warning: `getwc' redefined
/usr/include/iso/wchar_iso.h:337: warning: this is the location of the
previous 
definition
/usr/include/widec.h:39: warning: `putwc' redefined
/usr/include/iso/wchar_iso.h:340: warning: this is the location of the
previous 
definition
/usr/include/widec.h:40: warning: `getwchar' redefined
/usr/include/iso/wchar_iso.h:338: warning: this is the location of the
previous 
definition
/usr/include/widec.h:41: warning: `putwchar' redefined
/usr/include/iso/wchar_iso.h:341: warning: this is the location of the
previous 
definition
Modules/_cursesmodule.c: In function `PyCurses_Putp':
Modules/_cursesmodule.c:2135: 
warning: implicit declaration of function `putp'
Modules/_cursesmodule.c: In function `PyCurses_tigetflag':
Modules/_cursesmodule.c:2219: 
warning: implicit declaration of function `tigetflag'
Modules/_cursesmodule.c: In function `PyCurses_tigetnum':
Modules/_cursesmodule.c:2232: 
warning: implicit declaration of function `tigetnum'
Modules/_cursesmodule.c: In function `PyCurses_tigetstr':
Modules/_cursesmodule.c:2245: 
warning: implicit declaration of function `tigetstr'
Modules/_cursesmodule.c:2245: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c: In function `PyCurses_tparm':
Modules/_cursesmodule.c:2270: 
warning: implicit declaration of function `tparm'
Modules/_cursesmodule.c:2270: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2273: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2276: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2279: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2282: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2285: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2288: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2291: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2294: 
warning: assignment makes pointer from integer without a cast
Modules/_cursesmodule.c:2297: 
warning: assignment makes pointer from integer without a cast

In file included from /usr/include/curses.h:23,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/curses.h:5,
from Include/py_curses.h:8,
from Modules/_curses_panel.c:15:
/usr/include/widec.h:38: warning: `getwc' redefined
/usr/include/iso/wchar_iso.h:337: warning: this is the location of the
previous 
definition
/usr/include/widec.h:39: warning: `putwc' redefined
/usr/include/iso/wchar_iso.h:340: warning: this is the location of the
previous 
definition
/usr/include/widec.h:40: warning: `getwchar' redefined
/usr/include/iso/wchar_iso.h:338: warning: this is the location of the
previous 
definition
/usr/include/widec.h:41: warning: `putwchar' redefined
/usr/include/iso/wchar_iso.h:341: warning: this is the location of the
previous 
definition
Modules/_curses_panel.c: In function `PyCursesPanel_set_panel_userptr':
Modules/_curses_panel.c:307: warning: passing arg 2 of `set_panel_userptr'
from incompatible pointer type

Modules/fpectlmodule.c: In function `fpe_reset':
Modules/fpectlmodule.c:144: warning: implicit declaration of function
`nonstandard_arithmetic'
Modules/fpectlmodule.c:145: warning: implicit declaration of function
`ieee_flags'
Modules/fpectlmodule.c:146: warning: implicit declaration of function
`ieee_handler'




For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=132787&group_id=5470