[Cython] GCC 4.6 unused-but-set-variable warnings
Stefan Behnel
stefan_ml at behnel.de
Thu Aug 4 08:41:21 CEST 2011
Vitja Makarov, 03.08.2011 21:07:
>>> Stefan, do you know why skip_dispatch argument is used for
>>> module-level cpdef function?
>>>
>>> There is warning about that too.
It seems you already found a way to handle it.
>> And here is my branch for unused_arg:
>>
>> https://github.com/vitek/cython/commits/_unused_args
>
> I've reverted skip_dispatch argument removal, that doesn't work this
> way and is more general issue.
> Now I mark all unused local entries and args with CYTHON_UNUSED.
Cool.
> That actually isn't an optimization just some warnings removal.
>
> I think real optimization should be done when we start with DefNode
> refactoring.
Absolutely.
> If you like that I'm gonna start pull request.
It looks good to me, so please do.
Stefan
More information about the cython-devel
mailing list