From 95a824c6532c165d3b7a9a3da28f7cfc9c6c2547 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 9 Nov 2005 23:57:36 +0000 Subject: [PATCH] rid -Wall warnings --- src/os/solaris/solaris_sigar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index b77ec97b..4a02ad86 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -1292,6 +1292,9 @@ static int create_fsdev_cache(sigar_t *sigar) if ((s = strchr(ptr, ':'))) { partition = *(s+1); } + else { + continue; + } for (j=0, paths=mapping; paths->name[0]; j++) { if (strnEQ(paths->device, ptr, strlen(paths->device))) { @@ -1430,7 +1433,7 @@ int sigar_cpu_info_list_get(sigar_t *sigar, { processor_info_t stats; unsigned int i; - int status; + int status = SIGAR_OK; sigar_kstat_update(sigar); /* for sigar->ncpu */