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

Fix GCC warning #389

Merged
merged 1 commit into from Nov 18, 2020
Merged

Fix GCC warning #389

merged 1 commit into from Nov 18, 2020

Conversation

orgads
Copy link
Contributor

@orgads orgads commented Jul 10, 2020

include_server/c_extensions/distcc_pump_c_extensions_module.c: In function ‘XArgv’:
include_server/c_extensions/distcc_pump_c_extensions_module.c:214:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  214 |     argv[i] = PyUnicode_AsUTF8(string_object);    /* does not increase
      |             ^

Far from optimal, but fixing const-correctness will require many changes.

include_server/c_extensions/distcc_pump_c_extensions_module.c: In function ‘XArgv’:
include_server/c_extensions/distcc_pump_c_extensions_module.c:214:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  214 |     argv[i] = PyUnicode_AsUTF8(string_object);    /* does not increase
      |             ^
@orgads
Copy link
Contributor Author

orgads commented Jul 17, 2020

@shawnl?

@shawnl
Copy link
Collaborator

shawnl commented Nov 18, 2020

Oh yeah, and argv handling is already nutso as it is always pre-allocated.

@shawnl shawnl merged commit f2766ff into distcc:master Nov 18, 2020
@orgads orgads deleted the const-warning branch November 18, 2020 13:19
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

Successfully merging this pull request may close these issues.

None yet

2 participants