Skip to content
Snippets Groups Projects
Commit b95df742 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'cppcheck.G4HiveEx-20241105' into 'main'

G4HiveEx: Adjust conditional for cppcheck.

See merge request atlas/athena!75608
parents 6a4a466a 1954510a
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ G4InitTool::initThread() { ...@@ -50,7 +50,7 @@ G4InitTool::initThread() {
// Assign the thread id // Assign the thread id
// TODO: implement a better solution. // TODO: implement a better solution.
// WARNING: not portable! // WARNING: not portable!
#ifdef __USE_GNU #if defined(__USE_GNU) || defined(__CPPCHECK__)
pid_t tid = gettid(); pid_t tid = gettid();
wThreadContext->SetThreadId( tid ); wThreadContext->SetThreadId( tid );
#else #else
......
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