[issue21019] PyMethodDef ml_name is char* instead of const char*

Martin v. Löwis report at bugs.python.org
Sat Mar 22 19:27:02 CET 2014


Martin v. Löwis added the comment:

I still can't reproduce the problem, not even with -Werror:

loewis at dinsdale:~$ cat a.c
struct Foo{
  char *text;
};

struct Foo f = {
  "data"
};

int main()
{
  return 0;
}

loewis at dinsdale:~$ gcc -Wall -Werror -o a a.c
loewis at dinsdale:~$ gcc --version
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

loewis at dinsdale:~$

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21019>
_______________________________________


More information about the Python-bugs-list mailing list