Add missing noreturn attribute to various functions

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2015-11-02 10:02:08 +00:00
parent 3bc3ab27ea
commit 36b8143c22
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -946,7 +946,7 @@ static const char *test_name(enum test test, int pipe, int bit, bool test_pixel_
}
}
static void usage(const char *name)
static void __attribute__((noreturn)) usage(const char *name)
{
fprintf(stderr, "Usage: %s [options]\n"
" -t,--test <pipestat|iir|framecount|flipcount|pan|flip|surflive|wrap|field>\n"
+1 -1
View File
@@ -142,7 +142,7 @@ static int get_frequency(struct freq_info *freq_info)
return val;
}
static void
static void __attribute__((noreturn))
usage(const char *prog)
{
printf("%s A program to manipulate Intel GPU frequencies.\n\n", prog);