aboutsummaryrefslogtreecommitdiff
path: root/qobject/qerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'qobject/qerror.c')
-rw-r--r--qobject/qerror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qobject/qerror.c b/qobject/qerror.c
index 3aee1cf6a6..fc8331aa67 100644
--- a/qobject/qerror.c
+++ b/qobject/qerror.c
@@ -42,8 +42,8 @@ static QError *qerror_new(void)
*
* Return strong reference.
*/
-static QError *qerror_from_info(ErrorClass err_class, const char *fmt,
- va_list *va)
+static QError * GCC_FMT_ATTR(2, 0)
+qerror_from_info(ErrorClass err_class, const char *fmt, va_list *va)
{
QError *qerr;