Commit 4523a8ab authored by Robert Bradshaw's avatar Robert Bradshaw

Warning for inline methods with buffer arguments.

parent 30482ee8
...@@ -1645,6 +1645,8 @@ class CFuncDefNode(FuncDefNode): ...@@ -1645,6 +1645,8 @@ class CFuncDefNode(FuncDefNode):
formal_arg.type = type_arg.type formal_arg.type = type_arg.type
formal_arg.name = type_arg.name formal_arg.name = type_arg.name
formal_arg.cname = type_arg.cname formal_arg.cname = type_arg.cname
if type_arg.type.is_buffer and 'inline' in self.modifiers:
warning(formal_arg.pos, "Buffer unpacking not optimized away.", 1)
name = name_declarator.name name = name_declarator.name
cname = name_declarator.cname cname = name_declarator.cname
self.entry = env.declare_cfunction( self.entry = env.declare_cfunction(
......
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