From 88b7266525ecdf35c433418af6fdc45c70a036a1 Mon Sep 17 00:00:00 2001 From: Chris Rogers <chris.rogers@stfc.ac.uk> Date: Sun, 23 Apr 2017 15:25:08 +0100 Subject: [PATCH] Fix gcc warning in tests --- tests/classic_src/AbsBeamline/RingTest.cpp | 9 --------- tests/opal_src/Distribution/GaussTest.cpp | 9 --------- 2 files changed, 18 deletions(-) diff --git a/tests/classic_src/AbsBeamline/RingTest.cpp b/tests/classic_src/AbsBeamline/RingTest.cpp index 7543e89ec..8fd3c89ad 100644 --- a/tests/classic_src/AbsBeamline/RingTest.cpp +++ b/tests/classic_src/AbsBeamline/RingTest.cpp @@ -37,15 +37,6 @@ #include <iostream> #include <sstream> -namespace { - std::string burnAfterReading(std::ostringstream &ostr) { - std::string returnValue = ostr.str(); - ostr.str(""); - - return returnValue; - } -} - // generate a set of weird, but closed, elements // reaches theta sum after 16 elements class OffsetFactory { diff --git a/tests/opal_src/Distribution/GaussTest.cpp b/tests/opal_src/Distribution/GaussTest.cpp index ae89e60b7..136f79e9c 100644 --- a/tests/opal_src/Distribution/GaussTest.cpp +++ b/tests/opal_src/Distribution/GaussTest.cpp @@ -25,15 +25,6 @@ Inform *gmsg; #include <cstring> #include <sstream> -namespace { - std::string burnAfterReading(std::ostringstream &ostr) { - std::string returnValue = ostr.str(); - ostr.str(""); - - return returnValue; - } -} - TEST(GaussTest, FullSigmaTest1) { OpalTestUtilities::SilenceTest silencer(true); char inputFileName[] = "GaussDistributionTest.in"; -- GitLab