diff options
author | Rye Mutt <rye@lindenlab.com> | 2024-10-01 11:51:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 11:51:15 -0400 |
commit | 0e0b9eb3b397b213bc6f268eb1690c4794cf3ed3 (patch) | |
tree | a31a9e52b45b654e3b76fdd1ffc3e25b7d3d6951 /indra/llcommon/tests/llsingleton_test.cpp | |
parent | 3d5188025e76bc4293cc0231b13ed6bd766dea01 (diff) | |
parent | 37c4e82a99a8f850a8c1d0a114938d50f8be169e (diff) |
Merge pull request #2750 from RyeMutt/rye/linuxwarn
Repair linux warning flags and fix test builds
Diffstat (limited to 'indra/llcommon/tests/llsingleton_test.cpp')
-rw-r--r-- | indra/llcommon/tests/llsingleton_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcommon/tests/llsingleton_test.cpp b/indra/llcommon/tests/llsingleton_test.cpp index adf5804272..91304b4885 100644 --- a/indra/llcommon/tests/llsingleton_test.cpp +++ b/indra/llcommon/tests/llsingleton_test.cpp @@ -240,12 +240,14 @@ namespace tut PSing1::initParamSingleton("again"); }); ensure_contains("second ctor(string) didn't throw", threw, "twice"); +#ifndef LL_GNUC // FIXME: Fails to build under GCC // try to initialize using the other constructor -- should be // well-formed, but illegal at runtime threw = catcherr.catch_llerrs([](){ PSing1::initParamSingleton(17); }); ensure_contains("other ctor(int) didn't throw", threw, "twice"); +#endif PSing1::deleteSingleton(); ensure("false negative on wasDeleted()", PSing1::wasDeleted()); threw = catcherr.catch_llerrs([](){ @@ -254,6 +256,7 @@ namespace tut ensure_contains("accessed deleted LLParamSingleton", threw, "deleted"); } +#ifndef LL_GNUC // FIXME: Fails to build under GCC template<> template<> void singleton_object_t::test<13>() { @@ -275,6 +278,7 @@ namespace tut }); ensure_contains("other ctor(string) didn't throw", threw, "twice"); } +#endif class CircularPCtor: public LLParamSingleton<CircularPCtor> { |