Bug 20814

Summary: #include <Python.h> always emits warnings when compiling with -D_GNU_SOURCE
Product: Sisyphus Reporter: Sir Raorn <raorn>
Component: python-devAssignee: Vladimir D. Seleznev <vseleznv>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: cow, george, glebfm, imz, vseleznv
Version: unstable   
Hardware: all   
OS: Linux   
URL: http://mail.python.org/pipermail/python-bugs-list/2004-October/025710.html

Description Sir Raorn 2009-07-17 19:28:21 MSD
In file included from /usr/include/python2.5/Python.h:8,
                 from if_python.c:43:
/usr/include/python2.5/pyconfig.h:939:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                 from os_unix.h:21,
                 from vim.h:245,
                 from if_python.c:20:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.5/Python.h:8,
                 from if_python.c:43:
/usr/include/python2.5/pyconfig.h:948:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                 from os_unix.h:21,
                 from vim.h:245,
                 from if_python.c:20:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
Comment 1 Andrey Rahmatullin 2009-07-17 19:36:03 MSD
Вобщем NOTABUG, за объяснениями в http://docs.python.org/c-api/intro.html#includes , с претензиями в апстрим.