From e52ef0810933ec5739c5d094d47535673002ea85 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 8 Jan 2009 15:18:38 -0800 Subject: [PATCH] Mark out_of_memory() as never returning. Found with -Wmissing-noreturn. --- lib/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.h b/lib/util.h index 10803d1b..9c38450c 100644 --- a/lib/util.h +++ b/lib/util.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation @@ -94,7 +94,7 @@ extern "C" { void set_program_name(const char *); -void out_of_memory(void); +void out_of_memory(void) NO_RETURN; void *xmalloc(size_t); void *xcalloc(size_t, size_t); void *xrealloc(void *, size_t); -- 2.30.2