From: Uwe Hermann Date: Sun, 18 Feb 2018 20:23:28 +0000 (+0100) Subject: output/analog: Fix a compiler warning on Mac OS X. X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=374b0a94b211d244cf7802751ed45c2059e1550a;p=libsigrok.git output/analog: Fix a compiler warning on Mac OS X. Apparently PRIu64 and G_GUINT64_FORMAT differ on some systems for unknown reasons. Use G_GUINT64_FORMAT to get rid of the warning for now. --- diff --git a/src/output/analog.c b/src/output/analog.c index f5d23e6f..45df4003 100644 --- a/src/output/analog.c +++ b/src/output/analog.c @@ -113,7 +113,8 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p g_string_append_printf(*out, "%f", g_variant_get_double(src->data)); } else if (srci->datatype == SR_T_UINT64) { - g_string_append_printf(*out, "%" PRIu64, + g_string_append_printf(*out, "%" + G_GUINT64_FORMAT, g_variant_get_uint64(src->data)); } g_string_append(*out, "\n");