[Piglit] [PATCH] glean/texswizzle: Fix GCC return-type warning.
Vinson Lee
vlee at freedesktop.org
Wed Feb 19 00:46:20 PST 2014
This patch fixes this GCC return-type warning.
ttexswizzle.cpp: In member function 'GLubyte GLEAN::TexSwizzleTest::Swizzle(const GLubyte*, GLenum)':
ttexswizzle.cpp:119:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/glean/ttexswizzle.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/glean/ttexswizzle.cpp b/tests/glean/ttexswizzle.cpp
index 667dda2..abbb93b 100644
--- a/tests/glean/ttexswizzle.cpp
+++ b/tests/glean/ttexswizzle.cpp
@@ -115,6 +115,7 @@ TexSwizzleTest::Swizzle(const GLubyte *texColor, GLenum swizzle)
return 0;
default:
assert(0);
+ return 0;
}
}
--
1.8.5.3
More information about the Piglit
mailing list