build: fix a few warnings from clang

This commit is contained in:
Christian Hergert
2016-04-28 04:00:11 -07:00
parent a799765066
commit 113baca655
4 changed files with 7 additions and 9 deletions

View File

@ -66,7 +66,6 @@ sysprofd_perf_event_open (sd_bus_message *msg,
{
struct perf_event_attr attr = { 0 };
sd_bus_message *reply = NULL;
sd_bus_message *kvpair;
uint64_t flags = 0;
int disabled = 0;
int32_t wakeup_events = 149;

View File

@ -763,7 +763,6 @@ sp_window_class_init (SpWindowClass *klass)
static void
sp_window_init (SpWindow *self)
{
GAction *action;
static GActionEntry action_entries[] = {
{ "close-capture", sp_window_close_capture },
{ "open-capture", sp_window_open_capture },

View File

@ -226,7 +226,7 @@ test_reader_basic (void)
for (i = 0; i < 1000; i++)
{
guint ids[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
SpCaptureCounterValue values[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
SpCaptureCounterValue values[10] = { {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10} };
r = sp_capture_writer_set_counters (writer, t, -1, -1, ids, values, G_N_ELEMENTS (values));
g_assert_cmpint (r, ==, TRUE);

View File

@ -58,18 +58,18 @@ static GSourceFuncs source_funcs = {
};
static void
profiler_stopped (SpProfiler *profiler,
GMainLoop *main_loop)
profiler_stopped (SpProfiler *profiler_,
GMainLoop *main_loop_)
{
g_main_loop_quit (main_loop);
g_main_loop_quit (main_loop_);
}
static void
profiler_failed (SpProfiler *profiler,
profiler_failed (SpProfiler *profiler_,
const GError *reason,
GMainLoop *main_loop)
GMainLoop *main_loop_)
{
g_assert (SP_IS_PROFILER (profiler));
g_assert (SP_IS_PROFILER (profiler_));
g_assert (reason != NULL);
g_printerr ("Failure: %s\n", reason->message);