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 }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void
|
||||||
|
httpd_log (OtTrivialHttpd *httpd, const gchar *format, ...) __attribute__ ((format(printf, 2, 3)));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
httpd_log (OtTrivialHttpd *httpd, const gchar *format, ...)
|
httpd_log (OtTrivialHttpd *httpd, const gchar *format, ...)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue