summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2019-02-25 10:13:27 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2019-02-25 10:13:27 +0000
commitd12a4e6e3f97db3b6ee1120b09f4ff4efaa2a779 (patch)
tree2e97b665f21165fbff5d465f8bb6c3e7de15e54e
parentNo parallel LTO with clang (diff)
downloadicetray-d12a4e6e3f97db3b6ee1120b09f4ff4efaa2a779.tar.bz2
icetray-d12a4e6e3f97db3b6ee1120b09f4ff4efaa2a779.tar.xz
icetray-d12a4e6e3f97db3b6ee1120b09f4ff4efaa2a779.zip
Work around warning of expression with side-effects in typeid
-rw-r--r--icetray/icetray/options.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/icetray/icetray/options.cpp b/icetray/icetray/options.cpp
index 821824a..a23ebd7 100644
--- a/icetray/icetray/options.cpp
+++ b/icetray/icetray/options.cpp
@@ -25,7 +25,8 @@ namespace IceTray {
auto defManager = AdHoc::PluginManager::getDefault();
for (auto f : defManager->getAll<OptionsFactory>()) {
auto o = f->implementation()->create();
- defManager->add<Options>(o, typeid(*o).name(), __FILE__, __LINE__);
+ auto & inst = *o;
+ defManager->add<Options>(o, typeid(inst).name(), __FILE__, __LINE__);
all.add(*o->getOptions());
}
}