[lasem/lasem-0-4] tests: avoid unused but set warning.



commit f217d635ae27dab51868e6da80d1750087bd7f29
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Jan 6 18:52:33 2013 +0100

    tests: avoid unused but set warning.
    
    We don't really care about the result of the system calls here.

 tests/lsmtest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/lsmtest.c b/tests/lsmtest.c
index d6e9a65..8e64ff2 100644
--- a/tests/lsmtest.c
+++ b/tests/lsmtest.c
@@ -394,7 +394,7 @@ lasem_test_render (char const *filename, gboolean compare, gboolean dry_run, Sta
 
 		if (!is_xml && !g_file_test (reference_png_filename, G_FILE_TEST_IS_REGULAR) && !dry_run) {
 			FILE *file;
-			int result;
+			int result __attribute__((unused));
 			char *cmd;
 
 			file = fopen ("lsmmathmltest.tmp", "w");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]