This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akitada
Recipients akitada, amaury.forgeotdarc, brett.cannon, loewis, rpetrov
Date 2008-11-30.17:56:24
SpamBayes Score 0.04625536
Marked as misclassified No
Message-id <1228067786.36.0.68429523373.issue4370@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch just leaves Py_GCC_ATTRIBUTE as it is now.
Here is the highlight.

/*
 * Hide GCC's format attribute from compilers if one of the following is
true:
 * a) the compiler does not support it and not on RISC OS
 * b) the compiler does not support "z" printf format specifier
 */
#if ((!defined(__GNUC__) || __GNUC__ < 2 || \
     (__GNUC__ == 2 && __GNUC_MINOR__ < 3)) && \
     !defined(RISCOS)) || \
    !defined(PY_FORMAT_SIZE_T)
#define Py_GCC_FORMAT_ATTRIBUTE(type, str_idx, arg_idx)
/* Py_GCC_ATTRIBUTE is deprecated; use Py_GCC_FORMAT_ATTRIBUTE instead. */
#define Py_GCC_ATTRIBUTE(x)
#else
#define Py_GCC_FORMAT_ATTRIBUTE(type, str_idx, arg_idx) \
    __attribute__((format(type, str_idx, arg_idx)))
/* Py_GCC_ATTRIBUTE is deprecated; use Py_GCC_FORMAT_ATTRIBUTE instead. */
#define Py_GCC_ATTRIBUTE(x) __attribute__(x)
#endif
History
Date User Action Args
2008-11-30 17:56:26akitadasetrecipients: + akitada, loewis, brett.cannon, amaury.forgeotdarc, rpetrov
2008-11-30 17:56:26akitadasetmessageid: <1228067786.36.0.68429523373.issue4370@psf.upfronthosting.co.za>
2008-11-30 17:56:25akitadalinkissue4370 messages
2008-11-30 17:56:25akitadacreate