[New-bugs-announce] [issue41864] Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions

micwin report at bugs.python.org
Sat Sep 26 06:04:51 EDT 2020


New submission from micwin <micwinx at web.de>:

Python 3.9.0rc2
OS: centos 6.10
Compiler: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)

configure && make 

Python-3.9.0rc2/Modules/_zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions
Python-3.9.0rc2/Modules/_zoneinfo.c:1228: error: #pragma GCC diagnostic not allowed inside functions
Python-3.9.0rc2/Modules/_zoneinfo.c:1229: warning: comparison is always false due to limited range of data type
Python-3.9.0rc2/Modules/_zoneinfo.c:1230: error: #pragma GCC diagnostic not allowed inside functions


Proposed fix, here the diff:

1227d1226
< #if defined(__GNUC__) && __GNUC__ >= 5
1230d1228
< #endif
1232d1229
< #if defined(__GNUC__) && __GNUC__ >= 5
1234d1230
< #endif

----------
components: Build
messages: 377520
nosy: micwin
priority: normal
severity: normal
status: open
title: Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions
type: compile error
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41864>
_______________________________________


More information about the New-bugs-announce mailing list