Skip to content
Snippets Groups Projects
Commit e86bbcb9 authored by scott snyder's avatar scott snyder
Browse files

TrigCombinedEvent: Use [[maybe_unused]] instead of UNUSED macro.

Use standard [[maybe_unused]] instead of the non-standard UNUSED macro.
parent 6777bf70
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ atlas_depends_on_subdirs( PUBLIC ...@@ -13,7 +13,6 @@ atlas_depends_on_subdirs( PUBLIC
Trigger/TrigEvent/TrigNavigation Trigger/TrigEvent/TrigNavigation
PRIVATE PRIVATE
AtlasTest/TestTools AtlasTest/TestTools
Control/CxxUtils
Control/AthenaKernel Control/AthenaKernel
Trigger/TrigDataAccess/TrigSerializeCnvSvc ) Trigger/TrigDataAccess/TrigSerializeCnvSvc )
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/ */
//#include <iostream> //#include <iostream>
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <stdexcept> #include <stdexcept>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include "TrigCombinedEvent/TrigComposite.h" #include "TrigCombinedEvent/TrigComposite.h"
#include "CxxUtils/unused.h"
using namespace std; using namespace std;
...@@ -136,14 +135,16 @@ void TrigComposite::eraseDetail(const std::string& key) { ...@@ -136,14 +135,16 @@ void TrigComposite::eraseDetail(const std::string& key) {
template<typename T> template<typename T>
std::map<std::string, T>& TrigComposite::detailsMap() { std::map<std::string, T>& TrigComposite::detailsMap() {
// this should never be needed, need to add compile error here // this should never be needed, need to add compile error here
int UNUSED(z) = [[maybe_unused]]
int z =
sizeof(struct TrigComposite_does_not_support_that_type_as_a_detail); sizeof(struct TrigComposite_does_not_support_that_type_as_a_detail);
} }
template<typename T> template<typename T>
const std::map<std::string, T>& TrigComposite::detailsMap() const { const std::map<std::string, T>& TrigComposite::detailsMap() const {
// this should never be needed, need to add compile error here // this should never be needed, need to add compile error here
int UNUSED(z) = [[maybe_unused]]
int z =
sizeof(struct TrigComposite_does_not_support_that_type_as_a_detail); sizeof(struct TrigComposite_does_not_support_that_type_as_a_detail);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment