mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson.build: enable -Werror=format
This commit is contained in:
parent
17fcc9fc51
commit
ec521ca870
3 changed files with 4 additions and 3 deletions
|
|
@ -81,7 +81,8 @@ common_flags = [
|
||||||
'-Wsign-compare',
|
'-Wsign-compare',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
'-Wpointer-sign',
|
'-Wpointer-sign',
|
||||||
'-Wformat',
|
'-Werror=format',
|
||||||
|
'-Wno-error=format-overflow', # avoid some "‘%s’ directive argument is null"
|
||||||
'-Wformat-security',
|
'-Wformat-security',
|
||||||
'-Wimplicit-fallthrough',
|
'-Wimplicit-fallthrough',
|
||||||
'-Wmissing-braces',
|
'-Wmissing-braces',
|
||||||
|
|
|
||||||
|
|
@ -807,7 +807,7 @@ mmap_init(struct impl *impl, struct port *port,
|
||||||
port->memtype == SPA_DATA_MemFd) {
|
port->memtype == SPA_DATA_MemFd) {
|
||||||
d[j].flags |= SPA_DATA_FLAG_MAPPABLE;
|
d[j].flags |= SPA_DATA_FLAG_MAPPABLE;
|
||||||
d[j].fd = bufs[i]->planes()[j].fd.get();
|
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;
|
d[j].data = NULL;
|
||||||
SPA_FLAG_SET(b->flags, BUFFER_FLAG_ALLOCATED);
|
SPA_FLAG_SET(b->flags, BUFFER_FLAG_ALLOCATED);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -750,7 +750,7 @@ static void stream_latency_update_cb(pa_stream *s, void *userdata)
|
||||||
pa_usec_t usec;
|
pa_usec_t usec;
|
||||||
int negative;
|
int negative;
|
||||||
pa_stream_get_latency(s, &usec, &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)
|
static int create_pulse_stream(struct impl *impl)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue