commit dbf84332f4fd7044122a4d2aabd939f87ce61abd
parent b71d1178215693f1e3ecf9ead40e889e700627dd
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date: Mon, 13 Sep 2021 00:59:25 -0700
Fix size_t format specifier warnings
Diffstat:
3 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/src/common/ssl_certificate.c b/src/common/ssl_certificate.c
@@ -179,11 +179,7 @@ static void gnutls_export_X509_fp(FILE *fp, gnutls_x509_crt_t x509_cert, gnutls_
g_warning("couldn't export cert %s (%"G_GSIZE_FORMAT")", gnutls_strerror(r), cert_size);
return;
}
-#ifdef G_OS_WIN32
- debug_print("writing %Iu bytes\n",cert_size);
-#else
- debug_print("writing %zd bytes\n",cert_size);
-#endif
+ debug_print("writing %" G_GSIZE_FORMAT " bytes\n",cert_size);
if (claws_fwrite(&output, 1, cert_size, fp) < cert_size) {
g_warning("failed to write cert: %d %s", errno, g_strerror(errno));
}
diff --git a/src/compose.c b/src/compose.c
@@ -5858,11 +5858,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
encoding = ENC_QUOTED_PRINTABLE;
}
-#ifdef G_OS_WIN32
- debug_print("main text: %Id bytes encoded as %s in %d\n",
-#else
- debug_print("main text: %zd bytes encoded as %s in %d\n",
-#endif
+ debug_print("main text: %" G_GSIZE_FORMAT " bytes encoded as %s in %d\n",
strlen(buf), out_codeset, encoding);
/* check for line length limit */
diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp
@@ -111,7 +111,7 @@ GInputStream *http::load_url(const gchar *url, GError **error)
_error = g_error_new_literal(G_FILE_ERROR, res, curl_easy_strerror(res));
g_object_unref(data.memory);
} else {
- debug_print("Image size: %d\n", data.size);
+ debug_print("Image size: %" G_GSIZE_FORMAT "\n", data.size);
stream = data.memory;
}
}