diff options
author | Brian Paul <[email protected]> | 2010-07-01 09:15:31 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-07-01 09:15:31 -0600 |
commit | 17c176eb73285f2bbaffef8df4d953ce7a52507a (patch) | |
tree | 055c80fa9d22b11360af65c5c0daee5aa69da1d7 | |
parent | 8d93f360c582297b9ced11c234ab4bd53103a8a6 (diff) |
llvmpipe: silence pointer type warnings
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_format.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c index 80d2c686174..e1277d800e6 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_format.c +++ b/src/gallium/drivers/llvmpipe/lp_test_format.c @@ -146,13 +146,15 @@ test_format_float(unsigned verbose, FILE *fp, boolean first = TRUE; boolean success = TRUE; unsigned i, j, k, l; + void *f; fetch = add_fetch_rgba_test(verbose, desc, lp_float32_vec4_type()); - fetch_ptr = (fetch_ptr_t)pointer_to_func(LLVMGetPointerToGlobal(lp_build_engine, fetch)); + f = LLVMGetPointerToGlobal(lp_build_engine, fetch); + fetch_ptr = (fetch_ptr_t) pointer_to_func(f); if (verbose >= 2) { - lp_disassemble(fetch_ptr); + lp_disassemble(f); } for (l = 0; l < util_format_nr_test_cases; ++l) { @@ -225,13 +227,15 @@ test_format_unorm8(unsigned verbose, FILE *fp, boolean first = TRUE; boolean success = TRUE; unsigned i, j, k, l; + void *f; fetch = add_fetch_rgba_test(verbose, desc, lp_unorm8_vec4_type()); - fetch_ptr = (fetch_ptr_t)pointer_to_func(LLVMGetPointerToGlobal(lp_build_engine, fetch)); + f = LLVMGetPointerToGlobal(lp_build_engine, fetch); + fetch_ptr = (fetch_ptr_t) pointer_to_func(f); if (verbose >= 2) { - lp_disassemble(fetch_ptr); + lp_disassemble(f); } for (l = 0; l < util_format_nr_test_cases; ++l) { |