From 1c3654e77c00a52734831bbce7c00022179ae43b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 20 Feb 2015 16:01:25 +0000 Subject: [PATCH 2/3] tests: reassure clang that oom() does in fact not return --- test/fdpass.c | 2 ++ test/manual-authz.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/fdpass.c b/test/fdpass.c index 96f9427..65ade4c 100644 --- a/test/fdpass.c +++ b/test/fdpass.c @@ -31,6 +31,7 @@ #include +#include #include #ifdef G_OS_UNIX @@ -108,6 +109,7 @@ static void oom (const gchar *doing) { g_error ("out of memory (%s)", doing); + abort (); } static void diff --git a/test/manual-authz.c b/test/manual-authz.c index f9e3688..ee9bc52 100644 --- a/test/manual-authz.c +++ b/test/manual-authz.c @@ -30,6 +30,7 @@ #include +#include #ifdef G_OS_UNIX #include #include @@ -57,6 +58,7 @@ static void oom (void) { g_error ("out of memory"); + abort (); } static void -- 2.1.4