You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid compiler warning in rootcling and rootcling_stage1
Warning:
root/core/rootcling_stage1/src/rootcling_stage1.cxx(38):
warning root-project#69: integer conversion resulted in truncation
auto dummyVal = (int)(long)&usedToIdentifyRootClingByDlSym;
^^^
The method above uses a cast to long, followed by a cast to int,
which results in a truncation. That is harmless, since the value
is never used, but generates a compiler warning with ICC 17. This
commit avoids the warning by storing the address of the same symbol
in a static variable instead.
0 commit comments