[core] rm C99 workaround for snprintf - #23240
Conversation
Test Results 22 files 22 suites 3d 9h 58m 53s ⏱️ For more details on these failures, see this check. Results for commit 4c4cbf1. ♻️ This comment has been updated with latest results. |
jblomer
left a comment
There was a problem hiding this comment.
Thanks! In principle looks good to me but the <cstdio> include should be in the include section of standard headers, below the ROOT includes.
ferdymercury
left a comment
There was a problem hiding this comment.
mv to include section below or rm if duplicate
ferdymercury
left a comment
There was a problem hiding this comment.
mv to include section below or rm if duplicate
oops sorry I missed that |
No problem, let's just remove the include in the places where it's not needed. |
08467fa to
e7ff1fc
Compare
e7ff1fc to
6e350b2
Compare
6e350b2 to
f855f3e
Compare
I think I checked everywhere now :) |
hageboeck
left a comment
There was a problem hiding this comment.
Very nice initiative!
If we remove snprintf.h, we should also clean up this (and below in the same file):
root/core/foundation/inc/ROOT/RConfig.hxx
Lines 65 to 67 in b6f36a1
Finally, we should probably leave a note in the release notes that this header disappears from ROOT, and that people should use <cstdio>. What do you think?
f855f3e to
b323245
Compare
Sorry that I didn't point this out immediately, but there's also the opposite |
7aea003 to
659726b
Compare
pcanal
left a comment
There was a problem hiding this comment.
I agree with this but I would at the very least leave a explicit error rather than just removing the header (unless it was never shipped as part the ROOT installation).
35fe5bd to
ddf24a6
Compare
it's part of the standard since C11, so no need for special wrapper use C++ header name mv C std headers to include section below or rm duplicate as suggested by jblomer
[foundation] rm unused DONTNEED_VSNPRINTF macro
as suggested by pcanal
[nfc] improve error message
78afedd to
4c4cbf1
Compare
it's part of the standard since C11, so no need for special wrapper