summaryrefslogtreecommitdiff
path: root/lib/igt_aux.c
diff options
context:
space:
mode:
authorAshutosh Dixit <ashutosh.dixit@intel.com>2021-01-29 22:44:21 -0800
committerChris Wilson <chris@chris-wilson.co.uk>2021-01-30 14:39:00 +0000
commite02612921a4e95aef3a368e7468f4337c9dcee7d (patch)
tree7b8feaa11b5787c2b78c362222e0e99b30c865e4 /lib/igt_aux.c
parentfdc23507d022b68443121ec2c1a951af27c87240 (diff)
meson: Turn on -Werror
We can choose which compile warnings to enable, but once they are enabled treat all warnings as error. This enforces stricter checks against compile warnings creeping in. v2: Fix redefinition warning errors from i915/gem_userptr_blits v3: Fix the even more pedantic clang compilation v4: Do not alter whitespace in lib/tests/igt_describe! Note: clang does not build assembler/ Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_aux.c')
-rw-r--r--lib/igt_aux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index fba34933..1217f5e8 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -276,7 +276,7 @@ bool __igt_sigiter_continue(struct __igt_sigiter *iter, bool enable)
static struct igt_helper_process signal_helper;
long long int sig_stat;
-static void __attribute__((noreturn)) signal_helper_process(pid_t pid)
+__noreturn static void signal_helper_process(pid_t pid)
{
/* Interrupt the parent process at 500Hz, just to be annoying */
while (1) {
@@ -391,7 +391,7 @@ void igt_resume_signal_helper(void)
}
static struct igt_helper_process shrink_helper;
-static void __attribute__((noreturn)) shrink_helper_process(int fd, pid_t pid)
+__noreturn static void shrink_helper_process(int fd, pid_t pid)
{
while (1) {
igt_drop_caches_set(fd, DROP_SHRINK_ALL);
@@ -449,7 +449,7 @@ static void show_kernel_stack(pid_t pid)
}
static struct igt_helper_process hang_detector;
-static void __attribute__((noreturn))
+__noreturn static void
hang_detector_process(int fd, pid_t pid, dev_t rdev)
{
struct udev_monitor *mon =
@@ -496,7 +496,7 @@ hang_detector_process(int fd, pid_t pid, dev_t rdev)
exit(0);
}
-static void sig_abort(int sig)
+__noreturn static void sig_abort(int sig)
{
errno = 0; /* inside a signal, last errno reporting is confusing */
igt_assert(!"GPU hung");