diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2019-10-02 17:12:18 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-03 08:02:45 +0000 |
commit | 342a8ba08a67fcbc6f179c32118ca2035002698d (patch) | |
tree | 75658b40b8eede22ae94339c59a67b3de8e02455 /src/profiling | |
parent | 83450fa5d56cafe06d64fcd5f73dd9ed79c95e60 (diff) | |
download | armnn-342a8ba08a67fcbc6f179c32118ca2035002698d.tar.gz |
Throw by value, catch by const reference. Even anonymously.
This avoids compiler warnings about catching polymorphic types
by value.
Change-Id: I672bcffe3471fcc0c446bab1e554937ba09208b2
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Diffstat (limited to 'src/profiling')
-rw-r--r-- | src/profiling/CommandThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/CommandThread.cpp b/src/profiling/CommandThread.cpp index 4cd622c477..bd4aa96c7c 100644 --- a/src/profiling/CommandThread.cpp +++ b/src/profiling/CommandThread.cpp @@ -37,7 +37,7 @@ void CommandThread::WaitForPacket() m_CommandHandlerRegistry.GetFunctor(packet.GetPacketId(), version.GetEncodedValue()); commandHandlerFunctor->operator()(packet); } - catch(armnn::TimeoutException) + catch(const armnn::TimeoutException&) { if(m_StopAfterTimeout) { @@ -94,4 +94,4 @@ bool CommandThread::StopAfterTimeout(bool stopAfterTimeout) }//namespace profiling -}//namespace armnn
\ No newline at end of file +}//namespace armnn |