[Python-Dev] [Python-checkins] cpython: Issue #19976: Argument Clinic METH_NOARGS functions now always (original) (raw)

Stefan Krah stefan at bytereef.org
Sat Jan 4 22:33:35 CET 2014


Stefan Behnel <stefan_ml at behnel.de> wrote:

""" #ifndef CYTHONUNUSED # if defined(GNUC) _# if !(defined(cplusplus)) || (GNUC > 3 || (GNUC == 3 && GNUCMINOR >= 4)) # define CYTHONUNUSED attribute ((unused)) # else # define CYTHONUNUSED # endif _# elif defined(_ICC) || (defined(INTELCOMPILER) && !defined(MSCVER)) # define CYTHONUNUSED attribute ((unused)) # else # define CYTHONUNUSED # endif #endif """

I wonder why this works, though, given that you say Intel doesn't support "attribute". The only difference I can spot is the space behind it.

You're right, icc version 12.0 supports the attribute. It must have been some earlier version that failed.

Stefan Krah



More information about the Python-Dev mailing list