mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
Add missing noreturn attribute to various functions
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user