tud-zih-energy / lo2s

Linux OTF2 Sampling - A Lightweight Node-Level Performance Monitoring Tool
https://tu-dresden.de/zih/forschung/projekte/lo2s?set_language=en
GNU General Public License v3.0
45 stars 13 forks source link

fix(warning): Fix dangling reference to temporary warning #282

Closed cvonelm closed 1 year ago

cvonelm commented 1 year ago

Recent GCC versions complain about a possible dangling reference to a temporary.

Fix this warning by returning a copy of the EventDescription instead, as all code paths copy the EventDescription in the end anyways.

This fixes #281.