This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions
Type: compile error Stage: resolved
Components: Build Versions: Python 3.9
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Compiler warnings in _zoneinfo.c on Windows build in 64-bit
View: 40686
Assigned To: Nosy List: corona10, lukasz.langa, micwin, p-ganssle
Priority: normal Keywords:

Created on 2020-09-26 10:04 by micwin, last changed 2022-04-11 14:59 by admin. This issue is now closed.

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
2022-04-11 14:59:36adminsetgithub: 86030
2022-03-19 16:11:10iritkatrielsetstatus: open -> closed
superseder: Compiler warnings in _zoneinfo.c on Windows build in 64-bit
resolution: duplicate
stage: resolved
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