From 327a43149d62f1984112e1ef022ef039897f78ad Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 23 Aug 2005 01:39:21 +0000 Subject: [PATCH] -Wall -Wformat by default in configure.in git-svn-id: http://ltt.polymtl.ca/svn@1056 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 1 + ltt/branches/poly/lttv/lttv/filter.c | 6 ++++-- ltt/branches/poly/lttv/lttv/stats.c | 6 ------ ltt/branches/poly/lttv/lttv/tracecontext.c | 4 +--- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index 6fc1571d..944bb070 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -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) diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index 556bf179..605a3d9f 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -74,6 +74,9 @@ #endif #include +#include +#include +#include /** * @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) { /* diff --git a/ltt/branches/poly/lttv/lttv/stats.c b/ltt/branches/poly/lttv/lttv/stats.c index 261b5676..00e88110 100644 --- a/ltt/branches/poly/lttv/lttv/stats.c +++ b/ltt/branches/poly/lttv/lttv/stats.c @@ -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; diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 970da064..3aa099d6 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -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); -- 2.34.1