From 3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 Aug 2009 12:11:03 +0200 Subject: fix compile-time warnings. One fix (in CCrashWatcher::GetPluginsInfo) needs closer look, others are "trivially correct" Signed-off-by: Denys Vlasenko --- src/Daemon/CrashWatcher.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Daemon/CrashWatcher.cpp') diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index cba81f1..697a9a0 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -200,6 +200,9 @@ void *CCrashWatcher::create_report(void *arg) free(thread_data->UID); free(thread_data->dest); free(thread_data); + + /* Bogus value. pthreads require us to return void* */ + return NULL; } gboolean CCrashWatcher::cron_activation_periodic_cb(gpointer data) @@ -885,4 +888,7 @@ vector_map_string_string_t CCrashWatcher::GetPluginsInfo() } Warning(e.what()); } + // TODO: is it right? I added it just to disable a warning... + // but maybe returning empty map is wrong here? + return vector_map_string_string_t(); } -- cgit