Skip to content
Permalink
Browse files
MDEV-21551: Fix -Wsign-compare
An assertion added in commit c20bf8f
includes a sign mismatch. Make the affected data members unsigned.
  • Loading branch information
dr-m committed Jan 22, 2020
1 parent 6f2ca4e commit 588eac5
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,4 +1,4 @@
/* Copyright(C) 2019 MariaDB Corporation.
/* Copyright (C) 2019, 2020, MariaDB Corporation.
This program is free software; you can redistribute itand /or modify
it under the terms of the GNU General Public License as published by
@@ -217,9 +217,9 @@ class thread_pool_generic : public thread_pool

/** Number of long running tasks. The long running tasks are excluded when
adjusting concurrency */
int m_long_tasks_count;
unsigned int m_long_tasks_count;

int m_waiting_task_count;
unsigned int m_waiting_task_count;

/** Last time thread was created*/
std::chrono::system_clock::time_point m_last_thread_creation;

0 comments on commit 588eac5

Please sign in to comment.