diff options
author | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-19 14:12:43 -0700 |
---|---|---|
committer | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-20 13:44:44 -0700 |
commit | 2089cddba3e6e6bb7643ed670ee038dce0b8db6e (patch) | |
tree | 32e15820faa67ca7a02c8cf4c3e68f3a945b2ea6 /java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs | |
parent | c705223e0e5dff3bbd10f82c216784316f3c3398 (diff) | |
download | rs-2089cddba3e6e6bb7643ed670ee038dce0b8db6e.tar.gz |
Fix warnings in RenderScript sources.
An upcoming CL fixes a bug where many warning were disabled. This fixes
the warnings (that are turned into errors in most of our builds) before
the CL lands.
Also, adds long & unsigned long testing for a few tests.
Change-Id: Id6826e968db2d06ef9910fe775309d1c3872cdc5
Diffstat (limited to 'java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs')
-rw-r--r-- | java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs b/java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs index bec124dd..afada817 100644 --- a/java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs +++ b/java/tests/RSTest_CompatLib/src/com/android/rs/test/rstypes.rs @@ -22,6 +22,9 @@ static bool basic_test(uint32_t index) { rs_matrix4x4 matrix4x4TestLocal; rs_matrix3x3 matrix3x3TestLocal; rs_matrix2x2 matrix2x2TestLocal; + (void) matrix4x4TestLocal; + (void) matrix3x3TestLocal; + (void) matrix2x2TestLocal; // This test focuses primarily on compilation-time, not run-time. rs_element elementTestLocal; @@ -29,8 +32,14 @@ static bool basic_test(uint32_t index) { rs_allocation allocationTestLocal; rs_sampler samplerTestLocal; rs_script scriptTestLocal; + (void) elementTestLocal; + (void) typeTestLocal; + (void) allocationTestLocal; + (void) samplerTestLocal; + (void) scriptTestLocal; struct my_struct structTest; + (void) structTest; //allocationTestLocal = allocationTest; |