With gcc 4.4 this fixes not just a warning, but an error. -- Michal commit f1ed14e4062869f583472f74a1b51b9c5ad42cde Author: coolo Date: Mon Feb 16 11:09:03 2009 +0000 fix compilation warnings git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/icecream@926812 283d02a7-25f6-0310-bc7c-ecb5cbfe19da diff --git a/daemon/load.cpp b/daemon/load.cpp index 5cb1685..08e6f70 100644 --- a/daemon/load.cpp +++ b/daemon/load.cpp @@ -203,7 +203,7 @@ static void updateCPULoad( CPULoadInfo* load ) #ifndef USE_SYSCTL static unsigned long int scan_one( const char* buff, const char *key ) { - char *b = strstr( buff, key ); + const char *b = strstr( buff, key ); if ( !b ) return 0; unsigned long int val = 0; diff --git a/daemon/main.cpp b/daemon/main.cpp index f7be369..ee9c0f3 100644 --- a/daemon/main.cpp +++ b/daemon/main.cpp @@ -619,7 +619,7 @@ bool Daemon::maybe_stats(bool send_ping) #ifdef HAVE_SYS_VFS_H struct statfs buf; int ret = statfs(envbasedir.c_str(), &buf); - if (!ret && buf.f_bavail < (max_kids + 1 - current_kids) * 4 * 1024 * 1024 / buf.f_bsize) + if (!ret && long(buf.f_bavail) < long(max_kids + 1 - current_kids) * 4 * 1024 * 1024 / buf.f_bsize) msg.load = 1000; #endif