From cefc1e1d2fe6128ab467050f077002ce316c68a1 Mon Sep 17 00:00:00 2001
From: Enric Tejedor Saavedra <enric.tejedor.saavedra@cern.ch>
Date: Fri, 4 Dec 2015 16:50:38 +0100
Subject: [PATCH] Implicit MT: Remove error message, address TSystem::Load
 returning -2

---
 core/base/src/TROOT.cxx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/base/src/TROOT.cxx b/core/base/src/TROOT.cxx
index bdd802ade4b..e9fda8d2718 100644
--- a/core/base/src/TROOT.cxx
+++ b/core/base/src/TROOT.cxx
@@ -371,15 +371,13 @@ namespace Internal {
 
    static Func_t GetSymInLibThread(const char *funcname)
    {
-      const static bool loadSuccess = -1 != gSystem->Load("libThread");
+      const static bool loadSuccess = 0 <= gSystem->Load("libThread");
       if (loadSuccess) {
          if (auto sym = gSystem->DynFindSymbol(nullptr, funcname)) {
             return sym;
          } else {
             Error("GetSymInLibThread", "Cannot get symbol %s.", funcname);
          }
-      } else {
-         Error("GetSymInLibThread", "Cannot load Thread library.");
       }
       return nullptr;
    }
-- 
GitLab