[New-bugs-announce] [issue15495] enable type truncation warnings for gcc builds

Jeremy Kloth report at bugs.python.org
Mon Jul 30 03:49:50 CEST 2012


New submission from Jeremy Kloth:

It would seem that enabling GCC's type conversion/truncation warnings would be a good thing for Python builds.

This would bring GCC builds in line with MSVC builds and reduce the burden on the Windows developers in fixing them.  Also, it would bring attention to those issues by the developer who writes code and would hopefully understand the truncation issues at hand.

The CFLAGS required for this are '-Wconversion -Wno-sign-conversion'.

I unfortunately do not know the autoconf foo needed to implement this suggestion, however.  Perhaps it should only be enabled for debug builds as well to eliminate excess noise for other builds.  Or at least enabled on some of the buildbots.

----------
components: Build
messages: 166851
nosy: jkloth
priority: normal
severity: normal
status: open
title: enable type truncation warnings for gcc builds
type: enhancement
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list