From 22662ca56086ddb7240dc84a68ad89c785682f36 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Sun, 1 Jul 2012 19:38:40 +0200 Subject: attributes: add av_noreturn Also use it in the declaration of the various exit_program implementations in avtools. inspired by a clang-scan report. --- cmdutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmdutils.h') diff --git a/cmdutils.h b/cmdutils.h index 793a1e83c4..ca4f4c1e8c 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -373,7 +373,7 @@ FILE *get_preset_file(char *filename, size_t filename_size, * Do all the necessary cleanup and abort. * This function is implemented in the avtools, not cmdutils. */ -void exit_program(int ret); +av_noreturn void exit_program(int ret); /** * Realloc array to hold new_size elements of elem_size. -- cgit v1.2.3