Hi

Fixes two Clang warnings (dead writes to init and last).

- Lauri
>From bcdd851085a22ed9b0e438786be71d6598b30fb6 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Wed, 23 May 2012 18:00:33 +0300
Subject: [PATCH 10/13] cheetah: Comment out some dead code

Fixes two Clang warnings (dead writes to init and last).

Signed-off-by: Lauri Kasanen <[email protected]>
---
 plugins/cheetah/cutils.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/cheetah/cutils.c b/plugins/cheetah/cutils.c
index bbaca58..9af83ec 100644
--- a/plugins/cheetah/cutils.c
+++ b/plugins/cheetah/cutils.c
@@ -56,12 +56,12 @@ void mk_cheetah_print_worker_memory_usage(pid_t pid)
     }
     fclose(f);
 
-    last = 0;
-    init = 0;
-
     CHEETAH_WRITE("\n");
     return;
 
+/*    last = 0;
+    init = 0;
+
     while ((n = mk_api->str_search(buf + last, " ", MK_STR_SENSITIVE)) > 0) {
         if (c == 23) {
             value = mk_api->str_copy_substr(buf, init, last + n);
@@ -73,7 +73,7 @@ void mk_cheetah_print_worker_memory_usage(pid_t pid)
         init = last + n + 1;
         last += n + 1;
         c++;
-    }
+    }*/
 }
 
 void mk_cheetah_print_running_user()
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to