meson.build: enable -Werror=format

This commit is contained in:
Barnabás Pőcze 2024-06-27 14:40:31 +02:00 committed by Wim Taymans
parent 17fcc9fc51
commit ec521ca870
3 changed files with 4 additions and 3 deletions

View file

@ -81,7 +81,8 @@ common_flags = [
'-Wsign-compare',
'-Wpointer-arith',
'-Wpointer-sign',
'-Wformat',
'-Werror=format',
'-Wno-error=format-overflow', # avoid some "%s directive argument is null"
'-Wformat-security',
'-Wimplicit-fallthrough',
'-Wmissing-braces',

View file

@ -807,7 +807,7 @@ mmap_init(struct impl *impl, struct port *port,
port->memtype == SPA_DATA_MemFd) {
d[j].flags |= SPA_DATA_FLAG_MAPPABLE;
d[j].fd = bufs[i]->planes()[j].fd.get();
spa_log_debug(impl->log, "Got fd = %ld for buffer: #%d", d[j].fd, i);
spa_log_debug(impl->log, "Got fd = %" PRId64 " for buffer: #%d", d[j].fd, i);
d[j].data = NULL;
SPA_FLAG_SET(b->flags, BUFFER_FLAG_ALLOCATED);
}

View file

@ -750,7 +750,7 @@ static void stream_latency_update_cb(pa_stream *s, void *userdata)
pa_usec_t usec;
int negative;
pa_stream_get_latency(s, &usec, &negative);
pw_log_debug("latency %ld negative %d", usec, negative);
pw_log_debug("latency %" PRIu64 " negative %d", usec, negative);
}
static int create_pulse_stream(struct impl *impl)