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

Cast string constants to char* in function generation #1

Open
jordiae opened this issue Feb 15, 2022 · 0 comments
Open

Cast string constants to char* in function generation #1

jordiae opened this issue Feb 15, 2022 · 0 comments

Comments

@jordiae
Copy link

jordiae commented Feb 15, 2022

Cast string constants to char* in function generation

In file included from /home/jordiae/PycharmProjects/psyciogen/tmp/570615bf6e9341628f3f7004c490f404.cpp:2:
/home/jordiae/PycharmProjects/psyciogen/tmp/9ca8380e6acf46328cef6da94a3ab52f.c: In function ‘char* g(char*)’:
/home/jordiae/PycharmProjects/psyciogen/tmp/9ca8380e6acf46328cef6da94a3ab52f.c:6:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    6 |  char * temp_variable = "amkitiscxursnpaabwwjayhoiezlcsfnywoblgrvcpsscwnfxsso";
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant