You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyMethodDef ml_name is char* instead of const char* #65218
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-03-28.13:20:01.824>created_at=<Date2014-03-22.10:14:14.015>labels= ['extension-modules']
title='PyMethodDef ml_name is char* instead of const char*'updated_at=<Date2019-03-28.13:20:01.818>user='https://github.com/hvenev'
loewis@dinsdale:$ gcc -Wall -Werror -o a a.c
loewis@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.
Activity
hvenev commentedon Mar 22, 2014
It would be better if string literals could be used there.
loewis commentedon Mar 22, 2014
Why are you suggesting that string literals cannot be used? Works fine for me.
hvenev commentedon Mar 22, 2014
error: deprecated conversion from string constant to ‘char*’
I like -Werror.
loewis commentedon Mar 22, 2014
I still can't reproduce the problem, not even with -Werror:
loewis@dinsdale:
$ gcc -Wall -Werror -o a a.c$ gcc --versionloewis@dinsdale:
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@dinsdale:~$
hvenev commentedon Mar 22, 2014
g++
methane commentedon Mar 28, 2019
It is const char* now.