Commit cecd09c9 authored by Vitja Makarov's avatar Vitja Makarov

Mark unused vars with CYTHON_UNUSED qualifier

parent a084a7b0
...@@ -1205,6 +1205,8 @@ class CCodeWriter(object): ...@@ -1205,6 +1205,8 @@ class CCodeWriter(object):
return return
if storage_class: if storage_class:
self.put("%s " % storage_class) self.put("%s " % storage_class)
if not entry.cf_used:
self.put('CYTHON_UNUSED ')
self.put(entry.type.declaration_code( self.put(entry.type.declaration_code(
entry.cname, dll_linkage = dll_linkage)) entry.cname, dll_linkage = dll_linkage))
if entry.init is not None: if entry.init is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment