]> Git Repo - qemu.git/blobdiff - qobject/qerror.c
target-arm: Use mmu_idx in get_phys_addr()
[qemu.git] / qobject / qerror.c
index 3aee1cf6a693965fdc63f38cc1d8da775f501dd9..e3608e24022ba53991ea33b21d7fb0614075435c 100644 (file)
@@ -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;
 
@@ -121,14 +121,6 @@ void qerror_report_err(Error *err)
     }
 }
 
-void assert_no_error(Error *err)
-{
-    if (err) {
-        qerror_report_err(err);
-        abort();
-    }
-}
-
 /**
  * qobject_to_qerror(): Convert a QObject into a QError
  */
This page took 0.019533 seconds and 4 git commands to generate.