]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: fix compilation warnings in numa.cc 58704/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Jan 2022 19:10:43 +0000 (19:10 +0000)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Sun, 21 Jul 2024 14:37:42 +0000 (16:37 +0200)
commitc8bb5ee3c4f3f9acef2cace878163b52e065708a
treefc1d9e6e27ec88118db41d5207c3e3d55c6f5efd
parent9cc61fbd5592568c0f581e851963d29430f21a3a
common: fix compilation warnings in numa.cc

```
[141/1591] Building CXX object src/common/CMakeFiles/common-common-objs.dir/numa.cc.o
In file included from ../src/include/types.h:63,
                 from ../src/include/stringify.h:7,
                 from ../src/common/numa.cc:10:
../src/common/numa.cc: In function ‘std::string get_task_comm(pid_t)’:
../src/common/numa.cc:176:12: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
  176 |   assert(n <= sizeof(name));
      |          ~~^~~~~~~~~~~~~~~
../src/common/numa.cc: At global scope:
../src/common/numa.cc:159:20: warning: ‘std::string get_task_comm(pid_t)’ defined but not used [-Wunused-function]
  159 | static std::string get_task_comm(pid_t tid)
      |                    ^~~~~~~~~~~~~

```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit 718607457994046f03cf0459517355c82391ed87)
src/common/numa.cc