-
Notifications
You must be signed in to change notification settings - Fork 62
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: forbidden conversion to char* #389
Conversation
7810f62
to
79ba9c1
Compare
d0fce01
to
5b5f3f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM
Thanks @veprbl @akioogawa It is still a WIP though. --- fix_warns_orig.out 2022-09-03 18:33:15.000000000 -0400
+++ fix_warns_pr.out 2022-09-03 18:33:47.000000000 -0400
@@ -1,6 +1,6 @@
msg count
-0 deprecated conversion from string constant to [-Wwrite-strings] 798
+0 deprecated conversion from string constant to [-Wwrite-strings] 439
1 may be used uninitialized in this function [-Wmaybe-uninitialized] 425
2 deleting object of polymorphic class type which has non-virtual de... 403
3 variable set but not used [-Wunused-but-set-variable] 341
4 unused variable [-Wunused-variable] 293 |
0b31427
to
11bd71e
Compare
70b288c
to
346e9bf
Compare
f3f8ff2
to
a618004
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge
There are seem to be three areas here:
|
From the private communication:
|
This code is not used and can be removed. See the comment at star-bnl#389 (comment)
This code is not used and can be removed. See the comment at star-bnl#389 (comment)
This code is not used and can be removed. See the comment at #389 (comment)
GCC 11 warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] GCC 485 warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
The maintainers of StRoot/RTS forbid to modify this code.
295e579
to
df21f76
Compare
Last call for the code owners to comment or approve |
GCC 11
warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
GCC 485
warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
See #392 for motivation