From 1bc049906a35c3490532ab68fcbf90750c225f77 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 23 Apr 2007 10:59:26 +0000 Subject: Add some GCC warnings to the standard set, and add some others to the --enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526 --- epan/uat_load.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/uat_load.l') diff --git a/epan/uat_load.l b/epan/uat_load.l index 86c1eec758..364a5e5b9e 100644 --- a/epan/uat_load.l +++ b/epan/uat_load.l @@ -59,7 +59,7 @@ #define ERROR(fmtd) do { error = ep_strdup_printf("%s:%d: %s",uat->filename,linenum,ep_strdup_printf fmtd); yyterminate(); } while(0) #define SET_FIELD() \ - { gchar* err; \ + { const gchar* err; \ if (uat->fields[colnum].cb.chk) { \ if ( ! uat->fields[colnum].cb.chk(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data, &err) ) { \ ERROR(("%s",err)); \ @@ -67,7 +67,7 @@ }\ uat->fields[colnum].cb.set(record, ptr, len, uat->fields[colnum].cbdata.chk, uat->fields[colnum].fld_data);\ g_free(ptr);\ - colnum++; \ + colnum++; \ } while(0) #ifdef DEBUG_UAT_LOAD @@ -183,7 +183,7 @@ comment #[^\n]*\n {newline} { void* rec; - gchar* err = NULL; + const gchar* err = NULL; linenum++; -- cgit v1.2.1