Author: gonzalo
Date: 2006-08-28 15:21:41 -0400 (Mon, 28 Aug 2006)
New Revision: 64487
Modified:
trunk/mono/eglib/test/file.c
trunk/mono/eglib/test/test.c
Log:
-O2 warnings
Modified: trunk/mono/eglib/test/file.c
===================================================================
--- trunk/mono/eglib/test/file.c 2006-08-28 19:17:41 UTC (rev 64486)
+++ trunk/mono/eglib/test/file.c 2006-08-28 19:21:41 UTC (rev 64487)
@@ -96,6 +96,7 @@
gboolean res;
const gchar *tmp;
gchar *path, *sympath;
+ gint ignored;
res = g_file_test (NULL, 0);
if (res)
@@ -153,7 +154,7 @@
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);
Modified: trunk/mono/eglib/test/test.c
===================================================================
--- trunk/mono/eglib/test/test.c 2006-08-28 19:17:41 UTC (rev 64486)
+++ trunk/mono/eglib/test/test.c 2006-08-28 19:21:41 UTC (rev 64487)
@@ -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 @@
gchar *result;
gboolean iter_pass, run;
+ iter_pass = FALSE;
if(tests_to_run != NULL) {
gint j;
run = FALSE;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches