Fix some gcc8 warnings
Fix some gcc8 warnings:
GaudiHive:
- catch polymorphic exceptions by reference
GaudiProfiling:
- Avoid using
sprintfwith the same source and destination buffers - Replace
strncpywithmemcpy - Use
sa_sigactioninstead ofsa_handlerfor the signal handler to avoid function pointer type mismatch
For the changes in GaudiProfiling it would be good if someone who actually uses this code cross-checks my changes (cc @rmatev). The amount of low-level string manipulations in that code is a bit scary.