]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/valgrind/src/valgrind-3.6.0-svn/memcheck/tests/sh-mem.c
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / memcheck / tests / sh-mem.c
index a0f018441a24e182c4498a7c36d9d6d51cb88d06..f168c760203839369b5577d60d8e65f5eae15b10 100644 (file)
@@ -54,9 +54,9 @@ U8 build(int size, U1 byte)
    // res is now considered partially defined, but we know exactly what its
    // value is (it happens to be the same as its metavalue).
    
-   VALGRIND_GET_VBITS(&res, &shres, 8);
+   (void)VALGRIND_GET_VBITS(&res, &shres, 8);
    res2 = res;
-   VALGRIND_MAKE_MEM_DEFINED(&res2, 8);      // avoid the 'undefined' warning
+   (void)VALGRIND_MAKE_MEM_DEFINED(&res2, 8);  // avoid the 'undefined' warning
    assert(res2 == shres);
    return res;
 }
@@ -71,7 +71,7 @@ void check_all(U4 x, U4 y, U1 expected_byte, U1 expected_byte_alt,
    U1 sh[SZB_OF_a];     // Used for getting a[]'s V bits
    int i;
 
-   VALGRIND_GET_VBITS(a, sh, sizeof(a));
+   (void)VALGRIND_GET_VBITS(a, sh, sizeof(a));
    for (i = x; i < y; i++) {
       if ( expected_byte != sh[i] && expected_byte_alt != sh[i] ) {
          fprintf(stderr, "\n\nFAILURE: %s, offset %d, byte %d -- "