classification
Title: compiler warnings
Type: Stage:
Components: Build Versions: Python 3.0, Python 2.6, Python 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, christian.heimes, gvanrossum (3)
Priority: normal Keywords:

Created on 2007-12-13 20:25 by gvanrossum, last changed 2008-08-05 16:02 by gvanrossum.

Messages (7)
msg58582 - (view) Author: Guido van Rossum (gvanrossum) Date: 2007-12-13 20:25
I figured this would be useful:

/home/guido/p25/Modules/_ctypes/libffi/src/x86/ffi.c:177: warning:
function declaration isn't a prototype
/home/guido/p25/Modules/_ctypes/libffi/src/x86/ffi.c:194: warning:
function declaration isn't a prototype
/home/guido/p25/Modules/unicodedata.c: In function `unicodedata_decimal':
/home/guido/p25/Modules/unicodedata.c:110: warning: `rc' might be used
uninitialized in this function
/home/guido/p25/Modules/unicodedata.c: In function `unicodedata_numeric':
/home/guido/p25/Modules/unicodedata.c:197: warning: `rc' might be used
uninitialized in this function
/home/guido/p25/Modules/readline.c: In function `flex_complete':
/home/guido/p25/Modules/readline.c:681: warning: implicit declaration of
function `completion_matches'
/home/guido/p25/Modules/readline.c:681: warning: return makes pointer
from integer without a cast
/home/guido/p25/Modules/cjkcodecs/_codecs_iso2022.c: In function
`iso2022processesc':
/home/guido/p25/Modules/cjkcodecs/_codecs_iso2022.c:307: warning:
`esclen' might be used uninitialized in this function
msg59783 - (view) Author: Christian Heimes (christian.heimes) Date: 2008-01-12 04:26
2.96 is ancient and I don't see those warnings with 4.x series. Can I
close this bug?
msg59832 - (view) Author: Guido van Rossum (gvanrossum) Date: 2008-01-12 17:37
With a newer compiler (GCC 4.0.1 on OSX 10.5.1) I still get some warnings:

/Users/guido/p25/Modules/_ctypes/libffi/src/x86/ffi_darwin.c:220:
warning: function declaration isn’t a prototype

/Users/guido/p25/Modules/readline.c: In function ‘flex_complete’:
/Users/guido/p25/Modules/readline.c:681: warning: implicit declaration
of function ‘completion_matches’
/Users/guido/p25/Modules/readline.c:681: warning: return makes pointer
from integer without a cast

This is with GNU readline 5.2.
msg63893 - (view) Author: Guido van Rossum (gvanrossum) Date: 2008-03-18 05:06
Let's make this a catch-all bug to remind us to ensure the build is
warning-free on as many platforms as possible.
msg64346 - (view) Author: Benjamin Peterson (benjamin.peterson) Date: 2008-03-22 23:29
While we're at it, see 2388.
msg70464 - (view) Author: Benjamin Peterson (benjamin.peterson) Date: 2008-07-31 02:00
Is this still a problem?
msg70747 - (view) Author: Guido van Rossum (gvanrossum) Date: 2008-08-05 16:02
Let someone else review this.
History
Date User Action Args
2008-08-05 16:02:34gvanrossumsetpriority: critical -> normal
assignee: gvanrossum ->
messages: + msg70747
2008-07-31 02:00:50benjamin.petersonsetmessages: + msg70464
2008-03-22 23:29:21benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg64346
2008-03-18 05:06:30gvanrossumsetpriority: low -> critical
title: compiler warnings (gcc 2.96) -> compiler warnings
messages: + msg63893
versions: + Python 2.6, Python 3.0
2008-01-12 17:37:58gvanrossumsetstatus: pending -> open
2008-01-12 17:37:46gvanrossumsetmessages: + msg59832
2008-01-12 04:26:27christian.heimessetstatus: open -> pending
nosy: + christian.heimes
messages: + msg59783
components: + Build
2007-12-13 20:25:17gvanrossumcreate