I am building a C++ extension for use in Python. I am seeing this warning being generated during the compilation process - when a type:
python setup.py build
More specifically, distutils uses the same options that python was built with, you can add options using extra_compile_args
in creating the distutils.core.Extension
but there does not appear to be a way to remove existing arguments in gcc or distutils.
See http://bugs.python.org/issue9031 for details, it has been closed as a duplicate of http://bugs.python.org/issue1222585, but 9031 details this aspect of the problem