[Piglit] [PATCH] gl-4.5/compare-framebuffer-parameter-with-get: Fix return-type warning.
Vinson Lee
vlee at freedesktop.org
Tue Feb 14 00:58:08 UTC 2017
compare-framebuffer-parameter-with-get.c: In function 'get_framebuffer_name':
compare-framebuffer-parameter-with-get.c:208:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Fixes: d60f1fb839bc ("gl-4.5/compare-framebuffer-parameter-with-get: add test")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c b/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c
index 5573d9838c1b..b9eab53a6b51 100644
--- a/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c
+++ b/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c
@@ -204,6 +204,7 @@ get_framebuffer_name(int index)
return "complete framebuffer";
default:
assert(!"unknown framebuffer");
+ return "unknown framebuffer";
}
}
--
2.11.1
More information about the Piglit
mailing list