From a426a15d16f46198b9614617fd1faa88641f8c72 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Mon, 22 May 2006 17:12:39 +0000 Subject: [PATCH] we don't need a warning every time git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@655 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/conky.c b/src/conky.c index 3d872a10..15767b92 100644 --- a/src/conky.c +++ b/src/conky.c @@ -1980,10 +1980,6 @@ static struct text_object *construct_text_object(const char *s, const char *arg, END OBJ(acpiacadapter, 0) #if defined(__linux__) END OBJ(freq, 0) -/* gives an 'implicit declaration' warning when compiled - not nice but as of now it shouldn't be a problem: only - linux.c and freebsd.c have get_freq functions and both platforms - have their respective get_cpu_count() functions (ptarjan) */ get_cpu_count(); if (!arg || !isdigit(arg[0]) @@ -1992,17 +1988,13 @@ static struct text_object *construct_text_object(const char *s, const char *arg, || (unsigned int)atoi(&arg[0])>info.cpu_count) { obj->data.cpu_index=1; - ERR("freq: Invalid CPU number or you don't have that many CPUs! Displaying the clock for CPU 1."); +// ERR("freq: Invalid CPU number or you don't have that many CPUs! Displaying the clock for CPU 1."); } else { obj->data.cpu_index=atoi(&arg[0]); } END OBJ(freq_g, 0) -/* gives an 'implicit declaration' warning when compiled - not nice but as of now it shouldn't be a problem: only - linux.c and freebsd.c have get_freq functions and both platforms - have their respective get_cpu_count() functions (ptarjan) */ get_cpu_count(); if (!arg || !isdigit(arg[0]) @@ -2011,7 +2003,7 @@ static struct text_object *construct_text_object(const char *s, const char *arg, || (unsigned int)atoi(&arg[0])>info.cpu_count) { obj->data.cpu_index=1; - ERR("freq_g: Invalid CPU number or you don't have that many CPUs! Displaying the clock for CPU 1."); +// ERR("freq_g: Invalid CPU number or you don't have that many CPUs! Displaying the clock for CPU 1."); } else {