aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftypes.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-01-18 19:27:31 +0000
committerEvan Huus <eapache@gmail.com>2013-01-18 19:27:31 +0000
commit21b5dc01072216440d0f67b8f29b912423ce5ef3 (patch)
tree74a97c44ca59dc9a954c86303c1721cd026cd4a0 /epan/ftypes/ftypes.h
parent6b3308d11373c4ef1d44380f55a26150fae1032c (diff)
Make the buffer argument to FvalueToStringRepr functions volatile
and use that to fix a -Wclobbered error that bleeding-edge GCC throws on tvbuff types. Also remove a variable that looked like it was being used to hide the error before GCC got clever. svn path=/trunk/; revision=47153
Diffstat (limited to 'epan/ftypes/ftypes.h')
-rw-r--r--epan/ftypes/ftypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/ftypes/ftypes.h b/epan/ftypes/ftypes.h
index 7d58b66f9b..3f9907ece6 100644
--- a/epan/ftypes/ftypes.h
+++ b/epan/ftypes/ftypes.h
@@ -187,7 +187,7 @@ typedef void (*LogFunc)(const char*,...);
typedef gboolean (*FvalueFromUnparsed)(fvalue_t*, char*, gboolean, LogFunc);
typedef gboolean (*FvalueFromString)(fvalue_t*, char*, LogFunc);
-typedef void (*FvalueToStringRepr)(fvalue_t*, ftrepr_t, char*);
+typedef void (*FvalueToStringRepr)(fvalue_t*, ftrepr_t, char*volatile);
typedef int (*FvalueStringReprLen)(fvalue_t*, ftrepr_t);
typedef void (*FvalueSetFunc)(fvalue_t*, gpointer, gboolean);