Commit d0e5b718 authored by Stefan Behnel's avatar Stefan Behnel

Avoid the C compiler warning about an unused docstring constant for "__getbuffer__" etc.

parent 31ee9cab
...@@ -3443,8 +3443,8 @@ class DefNodeWrapper(FuncDefNode): ...@@ -3443,8 +3443,8 @@ class DefNodeWrapper(FuncDefNode):
if docstr.is_unicode: if docstr.is_unicode:
docstr = docstr.as_utf8_string() docstr = docstr.as_utf8_string()
code.putln( if with_pymethdef:
'static char %s[] = %s;' % ( code.putln('static char %s[] = %s;' % (
entry.doc_cname, entry.doc_cname,
docstr.as_c_string_literal())) docstr.as_c_string_literal()))
......
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