[Intel-gfx] [PATCH i-g-t] tests/Makefile.am: Add -Wno-unused-result to tests

Marius Vlad marius.c.vlad at intel.com
Wed Aug 24 08:42:17 UTC 2016


Removes useless warnings if a caller of a function
does not use its returned value(s). Mostly aesthetic.

Signed-off-by: Marius Vlad <marius.c.vlad at intel.com>
CC: Chris Wilson <chris at chris-wilson.co.uk>
CC: Daniel Vetter <daniel at ffwll.ch>
---
 tests/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0137597..bf27cb7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -54,7 +54,7 @@ EXTRA_DIST = $(common_files)
 
 CLEANFILES = $(EXTRA_PROGRAMS) test-list.txt test-list-full.txt .gitignore
 
-AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) $(DEBUG_CFLAGS)\
+AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS)\
 	-I$(srcdir)/.. \
 	-I$(srcdir)/../lib \
 	-include "$(srcdir)/../lib/check-ndebug.h" \
-- 
2.5.0



More information about the Intel-gfx mailing list