[New-bugs-announce] [issue24324] Remove -Wunreachable-code flag

Skip Montanaro report at bugs.python.org
Fri May 29 15:51:17 CEST 2015

New submission from Skip Montanaro:

Makefile.pre defines BASECFLAGS to include -Wunreachable-code. When building in the Linux environment available to me (GCC 4.4.6), compilation spews tons of warnings about "warning: will never be executed". According to this StackOverflow thread:


that flag was always broken in GCC and was eventually removed in 4.5. Maybe we should dispense with it when building Python, at least unless requested by the user.

components: Build
messages: 244377
nosy: skip.montanaro
priority: normal
severity: normal
stage: needs patch
status: open
title: Remove -Wunreachable-code flag
type: compile error
versions: Python 2.7, Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list