[New-bugs-announce] [issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type

Christian Heimes report at bugs.python.org
Fri Aug 22 03:03:01 CEST 2008


New submission from Christian Heimes <lists at cheimes.de>:

I'm getting a compiler warning on Linux AMD64. It's most probably an
issue related to 64bit builds, because size_t > uint_t on 64bit systems.
Such warnings may hide overflow issues.

gcc -pthread -c -fno-strict-aliasing -g -Wall -Wstrict-prototypes  -I.
-IInclude -I./Include   -DPy_BUILD_CORE -o Objects/obmalloc.o
Objects/obmalloc.c
Objects/obmalloc.c: In function 'new_arena':
Objects/obmalloc.c:529: warning: comparison is always false due to
limited range of data type

I was able to silence the compiler by declaring numarenas as size_t
instead of uint.

----------
components: Build
keywords: 64bit, needs review
messages: 71712
nosy: christian.heimes
priority: release blocker
severity: normal
status: open
title: Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type
type: compile error
versions: Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3642>
_______________________________________


More information about the New-bugs-announce mailing list