Stefan Behnel <stefan...@behnel.de> wrote:
> """
> #ifndef CYTHON_UNUSED
> # if defined(__GNUC__)
> #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 &&
> __GNUC_MINOR__ >= 4))
> #     define CYTHON_UNUSED __attribute__ ((__unused__))
> #   else
> #     define CYTHON_UNUSED
> #   endif
> # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
> #   define CYTHON_UNUSED __attribute__ ((__unused__))
> # else
> #   define CYTHON_UNUSED
> # 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


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to