Bug 20814 - #include <Python.h> always emits warnings when compiling with -D_GNU_SOURCE
Summary: #include <Python.h> always emits warnings when compiling with -D_GNU_SOURCE
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: python-dev (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Vladimir D. Seleznev
QA Contact: qa-sisyphus
URL: http://mail.python.org/pipermail/pyth...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 19:28 MSD by Sir Raorn
Modified: 2009-07-17 19:36 MSD (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 , с претензиями в апстрим.