From 8be8c20d33d67acb205a51897ea5284bc81605e7 Mon Sep 17 00:00:00 2001 From: Simon Cornish Date: Mon, 2 Sep 2013 23:25:36 -0700 Subject: Fix some compiler warnings --- lib/os_mon/c_src/cpu_sup.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/os_mon') diff --git a/lib/os_mon/c_src/cpu_sup.c b/lib/os_mon/c_src/cpu_sup.c index 7372d5b0e8..22946eca0e 100644 --- a/lib/os_mon/c_src/cpu_sup.c +++ b/lib/os_mon/c_src/cpu_sup.c @@ -29,6 +29,7 @@ #include #include #include +#include #if defined(__sun__) #include @@ -120,7 +121,9 @@ typedef struct { static void util_measure(unsigned int **result_vec, int *result_sz); +#if defined(__sun__) static unsigned int misc_measure(char* name); +#endif static void send(unsigned int data); static void sendv(unsigned int data[], int ints); static void error(char* err_msg); @@ -140,7 +143,9 @@ int main(int argc, char** argv) { int rc; int sz; unsigned int *rv; +#if defined(__linux__) unsigned int no_of_cpus = 0; +#endif #if defined(__sun__) kstat_ctl = kstat_open(); -- cgit v1.2.3