Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings when compiled with python3 #4103

Open
ajh17 opened this Issue Mar 12, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@ajh17
Copy link

ajh17 commented Mar 12, 2019

I get the following compiler warnings when trying to build on macOS 10.14 + python3.7:

if_python3.c:1114:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1129:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1195:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1213:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1309:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1401:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1424:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1442:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1485:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1494:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1506:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1519:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1529:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1540:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:1553:5: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    GET_ATTR_STRING(name, nameobj);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if_python3.c:805:7: note: expanded from macro 'GET_ATTR_STRING'
        name = _PyUnicode_AsString(nameobj)
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@k-takata k-takata added the if_python label Mar 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
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.