Tons of warning loading a macro in ROOT 5.16

Hello, I’m using a macro that is working well but when I try to load it with root 5.16 I receave a very long list of error (or waring). Expeting this messages the macro works well without any kind of problem.

The messages are in rootout file attached, I added also the macro, it’s long but I think that the problem has to be in the initilization part.

Which is the reason?

Thank’s in advance.
draw_proj.C (15.2 KB)
rootout.txt (20.7 KB)

I’m working on a solution; please check for when it’s done.
Cheers, Axel.