summaryrefslogtreecommitdiff
path: root/ui/qt/qt_ui_utils.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-03 16:25:01 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-04 00:25:56 +0000
commit0e74e8b0cc3a02457b05c1afd83fb02ba7255927 (patch)
treece5b71dee853188f2a22315c0b99678373f484d9 /ui/qt/qt_ui_utils.h
parentdeabe64e2ea42ffb5cefdf0302dc3c34ef81f88e (diff)
downloadwireshark-0e74e8b0cc3a02457b05c1afd83fb02ba7255927.tar.gz
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 <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/qt_ui_utils.h')
-rw-r--r--ui/qt/qt_ui_utils.h6
1 files changed, 4 insertions, 2 deletions
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.