Silence GCC 4.2 warnings: 'warning: deprecated conversion from string constant to ‘char*’'

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-12-17 15:38:56 +00:00
1 parent 17f43d369d
commit 8244302e67
3 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -358,7 +358,7 @@ class PyGetSetDef(object):
for name, getter, setter in self.attributes:
code_sink.writeln('{')
code_sink.indent()
code_sink.writeln('"%s", /* attribute name */' % name)
code_sink.writeln('(char*) "%s", /* attribute name */' % name)
## getter
getter_c_name = (getter and getter.c_function_name or "NULL")