Skip to content

Commit

Permalink
Fix a few compiler warnings about unused status code (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Mar 15, 2024
1 parent 54f9d47 commit 83fb539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k4FWCore/include/k4FWCore/DataHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ template <typename T>
DataHandle<T>::DataHandle(const std::string& descriptor, Gaudi::DataHandle::Mode a, IDataHandleHolder* fatherAlg)
: DataObjectHandle<DataWrapper<T>>(descriptor, a, fatherAlg), m_eds("EventDataSvc", "DataHandle") {
if (a == Gaudi::DataHandle::Writer) {
StatusCode sc = m_eds.retrieve();
m_eds.retrieve().ignore();
m_dataPtr = nullptr;
auto* podio_data_service = dynamic_cast<PodioDataSvc*>(m_eds.get());
if (nullptr != podio_data_service) {
Expand Down
4 changes: 2 additions & 2 deletions k4FWCore/include/k4FWCore/MetaDataHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ template <typename T> MetaDataHandle<T>::~MetaDataHandle() {}
template <typename T>
MetaDataHandle<T>::MetaDataHandle(const std::string& descriptor, Gaudi::DataHandle::Mode a)
: m_eds("EventDataSvc", "DataHandle"), m_descriptor(descriptor), m_mode(a) {
StatusCode sc = m_eds.retrieve();
m_eds.retrieve().ignore();
m_podio_data_service = dynamic_cast<PodioDataSvc*>(m_eds.get());
checkPodioDataSvc();
}
Expand All @@ -67,7 +67,7 @@ template <typename T>
MetaDataHandle<T>::MetaDataHandle(const Gaudi::DataHandle& handle, const std::string& descriptor,
Gaudi::DataHandle::Mode a)
: m_eds("EventDataSvc", "DataHandle"), m_descriptor(descriptor), m_dataHandle(&handle), m_mode(a) {
StatusCode sc = m_eds.retrieve();
m_eds.retrieve().ignore();
m_podio_data_service = dynamic_cast<PodioDataSvc*>(m_eds.get());
checkPodioDataSvc();
}
Expand Down

0 comments on commit 83fb539

Please sign in to comment.