mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
build: fix a few warnings from clang
This commit is contained in:
@ -66,7 +66,6 @@ sysprofd_perf_event_open (sd_bus_message *msg,
|
|||||||
{
|
{
|
||||||
struct perf_event_attr attr = { 0 };
|
struct perf_event_attr attr = { 0 };
|
||||||
sd_bus_message *reply = NULL;
|
sd_bus_message *reply = NULL;
|
||||||
sd_bus_message *kvpair;
|
|
||||||
uint64_t flags = 0;
|
uint64_t flags = 0;
|
||||||
int disabled = 0;
|
int disabled = 0;
|
||||||
int32_t wakeup_events = 149;
|
int32_t wakeup_events = 149;
|
||||||
|
|||||||
@ -763,7 +763,6 @@ sp_window_class_init (SpWindowClass *klass)
|
|||||||
static void
|
static void
|
||||||
sp_window_init (SpWindow *self)
|
sp_window_init (SpWindow *self)
|
||||||
{
|
{
|
||||||
GAction *action;
|
|
||||||
static GActionEntry action_entries[] = {
|
static GActionEntry action_entries[] = {
|
||||||
{ "close-capture", sp_window_close_capture },
|
{ "close-capture", sp_window_close_capture },
|
||||||
{ "open-capture", sp_window_open_capture },
|
{ "open-capture", sp_window_open_capture },
|
||||||
|
|||||||
@ -226,7 +226,7 @@ test_reader_basic (void)
|
|||||||
for (i = 0; i < 1000; i++)
|
for (i = 0; i < 1000; i++)
|
||||||
{
|
{
|
||||||
guint ids[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
|
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));
|
r = sp_capture_writer_set_counters (writer, t, -1, -1, ids, values, G_N_ELEMENTS (values));
|
||||||
g_assert_cmpint (r, ==, TRUE);
|
g_assert_cmpint (r, ==, TRUE);
|
||||||
|
|||||||
@ -58,18 +58,18 @@ static GSourceFuncs source_funcs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
profiler_stopped (SpProfiler *profiler,
|
profiler_stopped (SpProfiler *profiler_,
|
||||||
GMainLoop *main_loop)
|
GMainLoop *main_loop_)
|
||||||
{
|
{
|
||||||
g_main_loop_quit (main_loop);
|
g_main_loop_quit (main_loop_);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
profiler_failed (SpProfiler *profiler,
|
profiler_failed (SpProfiler *profiler_,
|
||||||
const GError *reason,
|
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_assert (reason != NULL);
|
||||||
|
|
||||||
g_printerr ("Failure: %s\n", reason->message);
|
g_printerr ("Failure: %s\n", reason->message);
|
||||||
|
|||||||
Reference in New Issue
Block a user