mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-02 04:58:01 +02:00
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:
parent
2ca78f51a9
commit
e554e1b4ba
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue