classification
Title: Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions
Type: compile error Stage:
Components: Build Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: corona10, lukasz.langa, micwin, p-ganssle
Priority: normal Keywords:

Created on 2020-09-26 10:04 by micwin, last changed 2020-09-26 16:00 by corona10.

Messages (2)
msg377520 - (view) Author: (micwin) Date: 2020-09-26 10:04
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
msg377531 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2020-09-26 16:00
see also: https://bugs.python.org/issue40686
History
Date User Action Args
2020-09-26 16:00:28corona10setnosy: + corona10
messages: + msg377531
2020-09-26 10:49:12xtreaksetnosy: + lukasz.langa
2020-09-26 10:48:00xtreaksetnosy: + p-ganssle
2020-09-26 10:04:51micwincreate