]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: fix compilation warnings in numa.cc
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Jan 2022 19:10:43 +0000 (19:10 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 26 Jan 2022 20:13:57 +0000 (20:13 +0000)
commit718607457994046f03cf0459517355c82391ed87
treee927ba4229ae0077379912151ae8e58e12f11574
parent0ccd1f69be073987972f01e5e99fc1c19234034d
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>
src/common/numa.cc