Commit e554e1b4 authored by Simon McVittie's avatar Simon McVittie

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

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
parent 2ca78f51
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment