-O2 warnings
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 28 Aug 2006 19:21:41 +0000 (19:21 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 28 Aug 2006 19:21:41 +0000 (19:21 -0000)
svn path=/trunk/mono/; revision=64487

eglib/test/file.c
eglib/test/test.c

index 130d74527f90ea38723caebd4d924a0839351ef9..a69810dd29a19d19c6ad6b65b2639a91d1a1a38b 100644 (file)
@@ -96,6 +96,7 @@ test_file ()
        gboolean res;
        const gchar *tmp;
        gchar *path, *sympath;
+       gint ignored;
 
        res = g_file_test (NULL, 0);
        if (res)
@@ -153,7 +154,7 @@ test_file ()
                return FAILED ("3 %s should not be a symlink", path);
 
        sympath = g_strconcat (path, "-link", NULL);
-       symlink (path, sympath);
+       ignored = symlink (path, sympath);
        res = g_file_test (sympath, G_FILE_TEST_EXISTS);
        if (!res)
                return FAILED ("4 %s should not exist", sympath);
index d9da87180b9606425c16d6548d90fc4b97afacca..f3204325d8a27930224a297b7284e2c5e9cccf96 100644 (file)
@@ -29,6 +29,7 @@
 #define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <stdarg.h>
 #include <sys/time.h>
 #include <glib.h>
@@ -78,6 +79,7 @@ run_group(Group *group, gint iterations, gboolean quiet,
                gchar *result;
                gboolean iter_pass, run;
        
+               iter_pass = FALSE;
                if(tests_to_run != NULL) {
                        gint j;
                        run = FALSE;