mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-22 06:59:59 -05:00
spa: mark the gettext wrappers with __attribute__((format_arg))
This removes the -Wformat-literal warnings for all _("some message")
calls. Remaining warnings are those where we pass in a custom buffer.
This commit is contained in:
parent
b5ad37c7ac
commit
6a18272fed
3 changed files with 5 additions and 2 deletions
|
|
@ -68,6 +68,7 @@ struct spa_i18n_methods {
|
|||
const char *msgid_plural, unsigned long int n);
|
||||
};
|
||||
|
||||
SPA_FORMAT_ARG_FUNC(2)
|
||||
static inline const char *
|
||||
spa_i18n_text(struct spa_i18n *i18n, const char *msgid)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue