[ROOT-5864] TArray headers files cast away qualifiers Created: 19/Dec/13 Updated: 17/Apr/14 Resolved: 17/Apr/14
|Reporter:||Daniel Geerts||Assignee:||Philippe Canal|
I'm testing my code on SLC6, and I'm getting a lot of warnings:
/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.34.14-x86_64-slc6-gcc4.7/include/TArrayF.h: In function 'TBuffer& operator<<(TBuffer&, const TArrayF*)':
This is because there's a cast on that line that casts a const TArrayF* to a TArray*, casting away the const-ness. The same happens in TArrayD, TArrayS, TArrayI, TArrayC (and probably some other TArray's that I'm not using). The casted-to type should include the const-ness (or if it's supposed to be non-const, the const-ness in the function definition should be removed).
|Comment by Daniel Geerts [ 17/Apr/14 ]|
Can this (simple) problem please be fixed in the next release? My compiler output is many many times larger due to this.
|Comment by Philippe Canal [ 17/Apr/14 ]|
The problem had already been resolved in v6 and is now also resolved in v5.34/19.