diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/drmtest.c | 4 | ||||
-rw-r--r-- | lib/igt_core.h | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 9a1232f4..632fec41 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -218,11 +218,11 @@ int drm_get_card(void) return -1; } -static void modprobe(const char *driver) +static int modprobe(const char *driver) { char buf[128]; snprintf(buf, sizeof(buf), "/sbin/modprobe -s %s", driver); - system(buf); + return system(buf); } /** diff --git a/lib/igt_core.h b/lib/igt_core.h index 59952331..64d823f6 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -297,6 +297,17 @@ void __igt_fail_assert(const char *domain, const char *file, void igt_exit(void) __attribute__((noreturn)); /** + * igt_ignore_warn: + * @expr: condition to ignore + * + * + * Stops the compiler warning about an unused return value. + */ +static inline void igt_ignore_warn(bool value) +{ +} + +/** * igt_assert: * @expr: condition to test * |