mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
scanner: Mark fail() as noreturn
Help static analysers by letting them know that once we fail(), execution will terminally complete. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a2ed67e85c
commit
5fab243a72
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ desc_dump(char *desc, const char *fmt, ...)
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void __attribute__ ((noreturn))
|
||||||
fail(struct location *loc, const char *msg, ...)
|
fail(struct location *loc, const char *msg, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue