From 0e74e8b0cc3a02457b05c1afd83fb02ba7255927 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 3 Feb 2015 16:25:01 -0800 Subject: Decorate declarations with G_GNUC_PRINTF() as appropriate. Decorate val_to_qstring() and val_ext_to_qstring() similarly to val_to_str_wmem(); this squelches some compiler warnings. Change-Id: I86e102e7c0a1a135be9492b7d605001c5d922031 Reviewed-on: https://code.wireshark.org/review/6940 Reviewed-by: Guy Harris --- ui/qt/qt_ui_utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/qt/qt_ui_utils.h') diff --git a/ui/qt/qt_ui_utils.h b/ui/qt/qt_ui_utils.h index 14fa196635..997e6c7dec 100644 --- a/ui/qt/qt_ui_utils.h +++ b/ui/qt/qt_ui_utils.h @@ -118,7 +118,8 @@ const QString address_to_display_qstring(const struct _address *address); * * @return A QString representation of the value_string. */ -const QString val_to_qstring(const guint32 val, const value_string *vs, const char *fmt); +const QString val_to_qstring(const guint32 val, const value_string *vs, const char *fmt) +G_GNUC_PRINTF(3, 0); /** Convert an value_string_ext to a QString using val_to_str_ext_wmem(). * @@ -128,7 +129,8 @@ const QString val_to_qstring(const guint32 val, const value_string *vs, const ch * * @return A QString representation of the value_string_ext. */ -const QString val_ext_to_qstring(const guint32 val, value_string_ext *vse, const char *fmt); +const QString val_ext_to_qstring(const guint32 val, value_string_ext *vse, const char *fmt) +G_GNUC_PRINTF(3, 0); /** * Round the current size of a font up to its next "smooth" size. -- cgit v1.2.1