pango: add printf attribute

This allows the compiler to catch mismatches between the format
string and the arguments passed in.

Need to add -Wno-format-zero-length because we pass an empty string
on purpose in swaybar/render.c.
This commit is contained in:
Simon Ser 2023-02-28 16:13:59 +01:00
parent aab4c9da5f
commit bd58df61ef
2 changed files with 4 additions and 2 deletions

View file

@ -18,6 +18,7 @@ add_project_arguments(
'-Wno-unused-parameter',
'-Wno-unused-result',
'-Wno-missing-braces',
'-Wno-format-zero-length',
'-Wundef',
'-Wvla',
],