Skip to content
Snippets Groups Projects
Commit 1f309c1c authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Remove unused variables

parent 0efce187
No related branches found
No related tags found
1 merge request!1501Fixes for gcc 13, clang 16 and C++20
......@@ -49,8 +49,6 @@ template class GaudiCommon<AlgTool>;
*/
// ============================================================================
namespace GaudiToolServices {
/// the default name for Event Data Service
const std::string s_EventDataSvc = "EventDataSvc";
/// the default name for Detector Data Service
const std::string s_DetectorDataSvc = "DetectorDataSvc";
/// the default name for Chrono & Stat Service
......
......@@ -29,11 +29,6 @@ namespace {
return m.end();
}
// ==========================================================================
const std::string s_X[] = { "x", "X", "px", "pX", "Px", "PX" };
const std::string s_Y[] = { "y", "Y", "py", "pY", "Py", "PY" };
const std::string s_Z[] = { "z", "Z", "pz", "pZ", "Pz", "PZ" };
const std::string s_E[] = { "t", "T", "e", "E" };
// ==========================================================================
} // namespace
// ============================================================================
namespace Gaudi {
......
......@@ -110,7 +110,10 @@ namespace GaudiKernelTest {
// This should result in non-zero user and kernel times
t0 = System::getProcessTime();
float x = 1.5;
long m = 0;
// this variable is only needed to ensure that the timed loop
// takes a measurable time
[[maybe_unused]] long m = 0;
for ( int i = 0; i < 10000; i++ ) {
x *= sin( x ) / atan( x ) * tanh( x ) * sqrt( x );
m += System::virtualMemory();
......
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