-Wall -Wformat by default in configure.in
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 23 Aug 2005 01:39:21 +0000 (01:39 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 23 Aug 2005 01:39:21 +0000 (01:39 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1056 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/lttv/lttv/filter.c
ltt/branches/poly/lttv/lttv/stats.c
ltt/branches/poly/lttv/lttv/tracecontext.c

index 6fc1571dc65b36b71c8fd44635411e397d394f3a..944bb0704d83b2452e286bde53f23bbca27bd96c 100644 (file)
@@ -52,6 +52,7 @@ AC_HEADER_STDC
 
 pkg_modules="gtk+-2.0 >= 2.0.0"
 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
+PACKAGE_CFLAGS="-Wall -Wformat"
 AC_SUBST(PACKAGE_CFLAGS)
 AC_SUBST(PACKAGE_LIBS)
 
index 556bf179502dd9aa3749bbe285c05ea2d976f9a2..605a3d9f1bebf48b1b1aeb4028397f80d69df896 100644 (file)
@@ -74,6 +74,9 @@
 #endif
 
 #include <lttv/filter.h>
+#include <ltt/trace.h>
+#include <stdlib.h>
+#include <string.h>
 
 /**
  * @fn LttvSimpleExpression* lttv_simple_expression_new()
@@ -109,7 +112,7 @@ lttv_simple_expression_assign_field(GPtrArray* fp, LttvSimpleExpression* se) {
   GString* f = NULL;
   
   if(fp->len < 2) return FALSE;
-  g_assert(f=g_ptr_array_remove_index(fp,0)); 
+  g_assert((f=g_ptr_array_remove_index(fp,0))); 
   
   /*
    * Parse through the specified 
@@ -376,7 +379,6 @@ lttv_simple_expression_assign_value(LttvSimpleExpression* se, char* value) {
   gboolean is_double = FALSE;
   LttTime t = ltt_time_zero;
   GString* v;
-  GQuark quark;
   
   switch(se->field) {
      /* 
index 261b5676cf643f5555bc75f41f911667ce789d88..00e8811004dfda3f594e35ad19afeededd227e76 100644 (file)
@@ -745,16 +745,10 @@ void lttv_stats_add_event_hooks(LttvTracesetStats *self)
 
   guint i, j, k, l, nb_trace, nb_tracefile;
 
-  LttFacility *f;
-
-  LttEventType *et;
-
   LttvTraceStats *ts;
 
   LttvTracefileStats *tfs;
 
-  void *hook_data;
-
   GArray *hooks, *before_hooks, *after_hooks;
 
   LttvTraceHook *hook;
index 970da06454407f05b1bea32c6f0b9c5ffc3c5084..3aa099d6108c0ea0c7f42fe5fa0610b833cdf133 100644 (file)
@@ -165,7 +165,7 @@ static void init_tracefile_context(LttTracefile *tracefile,
 static void
 init(LttvTracesetContext *self, LttvTraceset *ts)
 {
-  guint i, j, nb_trace;
+  guint i, nb_trace;
 
   LttvTraceContext *tc;
 
@@ -819,8 +819,6 @@ gboolean lttv_process_traceset_seek_position(LttvTracesetContext *self,
                                         const LttvTracesetContextPosition *pos)
 {
   guint i;
-  LttvTraceContext *tc;
-  LttvTracefileContext *tfc;
 
   g_tree_destroy(self->pqueue);
   self->pqueue = g_tree_new(compare_tracefile);
This page took 0.027094 seconds and 4 git commands to generate.