tests: reassure clang that oom() does in fact not return

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
Simon McVittie 2015-02-20 16:01:25 +00:00
parent 2ca78f51a9
commit e554e1b4ba
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,7 @@
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#ifdef G_OS_UNIX
@ -108,6 +109,7 @@ static void
oom (const gchar *doing)
{
g_error ("out of memory (%s)", doing);
abort ();
}
static void

View file

@ -30,6 +30,7 @@
#include <dbus/dbus.h>
#include <stdlib.h>
#ifdef G_OS_UNIX
#include <unistd.h>
#include <sys/types.h>
@ -57,6 +58,7 @@ static void
oom (void)
{
g_error ("out of memory");
abort ();
}
static void