From: Mathieu Desnoyers Date: Tue, 25 Jan 2011 15:50:25 +0000 (-0500) Subject: Further warning fixes X-Git-Tag: v0.12.37~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7d0aa40c0ca658e85876b06c7245292918588c13;p=lttv.git Further warning fixes Signed-off-by: Mathieu Desnoyers --- diff --git a/lttv/lttv/attribute.c b/lttv/lttv/attribute.c index 80126a5e..243fe024 100644 --- a/lttv/lttv/attribute.c +++ b/lttv/lttv/attribute.c @@ -50,7 +50,7 @@ typedef struct _Attribute { static __inline__ LttvAttributeValue address_of_value(LttvAttributeType t, AttributeValue *v) { - LttvAttributeValue va; + LttvAttributeValue va = { NULL }; /* init to NULL for gcc */ switch(t) { case LTTV_INT: va.v_int = &v->dv_int; break; diff --git a/lttv/modules/gui/controlflow/drawing.c b/lttv/modules/gui/controlflow/drawing.c index 51f4e37b..a901e8bb 100644 --- a/lttv/modules/gui/controlflow/drawing.c +++ b/lttv/modules/gui/controlflow/drawing.c @@ -504,7 +504,7 @@ void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss) { g_debug("Begin of chunk"); ControlFlowData *cfd = events_request->viewer_data; - LttvTracesetContext *tsc = &tss->parent.parent; + LttvTracesetContext *tsc = &tss->parent; //LttTime current_time = lttv_traceset_context_get_current_tfc(tsc)->timestamp; guint i; LttvTraceset *traceset = tsc->ts; diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 87d9ca89..c945e62f 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -434,7 +434,7 @@ void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor) viewer_container = tab->viewer_container; - viewer = (GtkWidget*)constructor(ptab); + viewer = (GtkWidget*)constructor(&ptab->parent); if(viewer) { //gtk_multivpaned_widget_add(GTK_MULTIVPANED(multivpaned), viewer); diff --git a/lttv/modules/gui/resourceview/module.c b/lttv/modules/gui/resourceview/module.c index 33191988..5c3b08ea 100644 --- a/lttv/modules/gui/resourceview/module.c +++ b/lttv/modules/gui/resourceview/module.c @@ -31,7 +31,7 @@ #include "eventhooks.h" #include "resourceview_icon.xpm" -#include "hLegendInsert.xpm" +/* unused #include "hLegendInsert.xpm" */ GQuark LTT_NAME_CPU;