summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRuediger Meier2017-06-27 20:33:28 +0200
committerRuediger Meier2017-06-29 14:04:21 +0200
commita25fb9e8ec534589bcc9f2fb45b4dfdc4d1084f7 (patch)
tree0de2b9c0b92b56dc7cd2ddcd4b68af69ee621b29 /tools
parentlsmem: fix, using freed memory (diff)
downloadkernel-qcow2-util-linux-a25fb9e8ec534589bcc9f2fb45b4dfdc4d1084f7.tar.gz
kernel-qcow2-util-linux-a25fb9e8ec534589bcc9f2fb45b4dfdc4d1084f7.tar.xz
kernel-qcow2-util-linux-a25fb9e8ec534589bcc9f2fb45b4dfdc4d1084f7.zip
lscpu: make clang analyzer happy
Let read_nodes() work on uninitialized structs to silence these two warnings: CC sys-utils/lscpu-lscpu.o warning: Path diagnostic report is not generated. Current output format does not support diagnostics that cross file boundaries. Refer to --analyzer-output for valid output formats In file included from sys-utils/lscpu.c:63: ./include/xalloc.h:32:21: warning: Call to 'malloc' has an allocation size of 0 bytes void *ret = malloc(size); ^~~~~~~~~~~~ sys-utils/lscpu.c:1468:23: warning: Function call argument is an uninitialized value desc->nodemaps[i] = path_read_cpuset(maxcpus, ^~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions