mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
trivial-httpd: Add __attribute__((format))
I was briefly looking at building with clang mostly since it detects unused variables with cleanup attributes, but then I hit this fatal error. It's a hard compile error with `-Wformat-nonliteral` since clang doesn't know it's a format string.
This commit is contained in:
parent
49322a3f53
commit
d270085ef3
@ -56,6 +56,9 @@ static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static void
|
||||
httpd_log (OtTrivialHttpd *httpd, const gchar *format, ...) __attribute__ ((format(printf, 2, 3)));
|
||||
|
||||
static void
|
||||
httpd_log (OtTrivialHttpd *httpd, const gchar *format, ...)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user