2
0
forked from Ivasoft/DSView

Disable many warning messages

This commit is contained in:
dreamsourcelabTAI
2023-06-29 14:49:45 +08:00
parent 6093633b77
commit a503e6404e
59 changed files with 358 additions and 382 deletions

View File

@@ -236,11 +236,11 @@ static gboolean parse_header(FILE *file, struct context *ctx)
if (q % p != 0)
{
/* Does not happen unless time value is non-standard */
sr_warn("Inexact rounding of samplerate, %llu / %llu to %llu Hz.",
q, p, ctx->samplerate);
sr_warn("Inexact rounding of samplerate, %lu / %lu to %lu Hz.",
(u64_t)q, (u64_t)p, (u64_t)ctx->samplerate);
}
sr_dbg("Samplerate: %llu", ctx->samplerate);
sr_dbg("Samplerate: %lu", (u64_t)ctx->samplerate);
}
else
{
@@ -476,7 +476,7 @@ static void parse_contents(FILE *file, const struct sr_dev_inst *sdi, struct con
prev_timestamp = timestamp - ctx->compress;
}
sr_dbg("New timestamp: %llu", timestamp);
sr_dbg("New timestamp: %lu", (u64_t)timestamp);
/* Generate samples from prev_timestamp up to timestamp - 1. */
send_samples(sdi, prev_values, timestamp - prev_timestamp);