summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-07-09 00:27:31 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-07-09 00:27:31 +0100
commitf11848eefbe6291cf593b0065b07499bad5ce5a4 (patch)
treecb3740b1362ac8dd12c77881666e2c158c8db376 /testsuite
parent58f5cbe577da87406ea03e7fabd38d03eae072db (diff)
Fix a bunch of unused-but-set-variable compiler warnings with gcc 4.6
Which cause compilation with -Werror to fail.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/generate_xml_table2.c20
-rw-r--r--testsuite/memcpy_speed.c5
2 files changed, 5 insertions, 20 deletions
diff --git a/testsuite/generate_xml_table2.c b/testsuite/generate_xml_table2.c
index 750d840..3d978c3 100644
--- a/testsuite/generate_xml_table2.c
+++ b/testsuite/generate_xml_table2.c
@@ -19,29 +19,9 @@ main (int argc, char *argv[])
{
int i;
OrcOpcodeSet *opcode_set;
- OrcTarget *targets[10];
- unsigned int target_flags[10];
- int n_targets;
orc_init();
orc_test_init();
-
- targets[0] = orc_target_get_by_name("sse");
- target_flags[0] = orc_target_get_default_flags(targets[0]);
-
- targets[1] = orc_target_get_by_name("mmx");
- target_flags[1] = orc_target_get_default_flags(targets[1]);
-
- targets[2] = orc_target_get_by_name("altivec");
- target_flags[2] = orc_target_get_default_flags(targets[2]);
-
- targets[3] = orc_target_get_by_name("arm");
- target_flags[3] = orc_target_get_default_flags(targets[3]);
-
- targets[4] = orc_target_get_by_name("c64x-c");
- target_flags[4] = orc_target_get_default_flags(targets[4]);
-
- n_targets=5;
printf(
"<table frame=\"all\" id=\"table-basictypes\" xreflabel=\"Table of Opcodes\">\n"
diff --git a/testsuite/memcpy_speed.c b/testsuite/memcpy_speed.c
index 73b1ec0..dda3de7 100644
--- a/testsuite/memcpy_speed.c
+++ b/testsuite/memcpy_speed.c
@@ -82,6 +82,11 @@ main(int argc, char *argv[])
orc_program_append (p, "copyb", ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1);
result = orc_program_compile (p);
+
+ if (ORC_COMPILE_RESULT_IS_FATAL (result)) {
+ fprintf (stderr, "Failed to compile orc_memcpy\n");
+ return -1;
+ }
}
#ifndef M_LN2