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 rpetrov
Recipients akitada, amaury.forgeotdarc, brett.cannon, rpetrov
Date 2008-11-25.23:11:32
SpamBayes Score 3.1512182e-11
Marked as misclassified No
Message-id <492C8622.5060701@roumenpetrov.info>
In-reply-to <1227629346.93.0.508901311626.issue4370@psf.upfronthosting.co.za>
Content
Akira Kitada wrote:
> Akira Kitada <akitada@gmail.com> added the comment:
> 
> Roumen,
> Thanks for the feedback!
> 
> This patch disables __attribute__ when PY_FORMAT_SIZE_T isn't defined,
> not always.

I would like to clarify. After patch if PY_FORMAT_SIZE_T isn't defined 
then __attribute__(XXX) will be ignored always irrespective of content, 
i.e. XXX.

> About the name of the macro, I think you are right.
> Py_GCC_FORMAT_ATTRIBUTE would be much better name if it is not used for
> other uses. (I'm not sure)
> I'll look into the code more and if it seems being safe to rename it,
> I'll update the patch and resubmit it.

The current python code use Py_GCC_ATTRIBUTE only for 
'format(printf(...)) ' attribute. The patch will prevent python to use 
this macro in future for other attributer.

Also I'm not sure that I would like warning to be hidden.
As example I know that GCC(mingw) 3.5.x don't support %z and I prefer to 
see those warnings instead to hide them.

Roumen
History
Date User Action Args
2008-11-25 23:11:33rpetrovsetrecipients: + rpetrov, brett.cannon, amaury.forgeotdarc, akitada
2008-11-25 23:11:33rpetrovlinkissue4370 messages
2008-11-25 23:11:32rpetrovcreate