[gmime: 4/27] More compiler warning fixes for the unit tests
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime: 4/27] More compiler warning fixes for the unit tests
- Date: Thu, 23 Nov 2017 15:44:14 +0000 (UTC)
commit f1e0b56face1a1d44c7ab32cb3c6949dfd37d28b
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Tue Nov 7 12:07:38 2017 -0500
More compiler warning fixes for the unit tests
tests/test-cat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-cat.c b/tests/test-cat.c
index a329321..d580266 100644
--- a/tests/test-cat.c
+++ b/tests/test-cat.c
@@ -369,13 +369,13 @@ test_cat_seek (GMimeStream *whole, struct _StreamPart *parts, int bounded)
if (g_mime_stream_seek (whole, offset, GMIME_STREAM_SEEK_SET) == -1) {
ex = exception_new ("could not seek to %lld in original stream: %s",
- offset, g_strerror (errno));
+ (long long) offset, g_strerror (errno));
throw (ex);
}
if (g_mime_stream_seek (cat, offset, GMIME_STREAM_SEEK_SET) == -1) {
ex = exception_new ("could not seek to %lld: %s",
- offset, g_strerror (errno));
+ (long long) offset, g_strerror (errno));
throw (ex);
}
@@ -576,7 +576,7 @@ int main (int argc, char **argv)
testsuite_start ("GMimeStreamCat");
for (i = 0; i < G_N_ELEMENTS (checks) && !failed; i++) {
- testsuite_check (checks[i].what);
+ testsuite_check ("%s", checks[i].what);
try {
checks[i].check (whole, list, checks[i].bounded);
testsuite_check_passed ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]