Further warning fixes
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 25 Jan 2011 15:50:25 +0000 (10:50 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 25 Jan 2011 15:50:25 +0000 (10:50 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttv/lttv/attribute.c
lttv/modules/gui/controlflow/drawing.c
lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
lttv/modules/gui/resourceview/module.c

index 80126a5e167eb1c717c856a8888be03f2e54ec96..243fe0240d1286d9e85598233d0708c7e7b82d55 100644 (file)
@@ -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;
index 51f4e37b14f18bb13b397f6557a6aa240af92989..a901e8bb4531a9bf7bfc9e14da51563ae88ec0fa 100644 (file)
@@ -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;
index 87d9ca8999c30cdaba9c518cdac97d5311da9883..c945e62f56b81d88f0a0d2e1ea52b2f8ab9f6807 100644 (file)
@@ -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); 
index 331919882f9d733a56f274a0bc480d9e6d9723b5..5c3b08eabc87aff667f58b7820aeacf6b5fae69f 100644 (file)
@@ -31,7 +31,7 @@
 #include "eventhooks.h"
 
 #include "resourceview_icon.xpm"
-#include "hLegendInsert.xpm"
+/* unused #include "hLegendInsert.xpm" */
 
 GQuark LTT_NAME_CPU;
 
This page took 0.027297 seconds and 4 git commands to generate.