This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch 3/3] mf-runtime build fix


From: Andrew Morton <akpm@osdl.org>

../../../gcc-svn/libmudflap/mf-runtime.c:310: error: redefinition of 'struct option'
../../../gcc-svn/libmudflap/mf-runtime.c: In function '__mf_usage':
../../../gcc-svn/libmudflap/mf-runtime.c:478: warning: value computed is not used



Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 libmudflap/mf-runtime.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN libmudflap/mf-runtime.c~mf-runtime-build-fix libmudflap/mf-runtime.c
--- gcc-svn/libmudflap/mf-runtime.c~mf-runtime-build-fix	2006-03-24 22:31:12.000000000 -0800
+++ gcc-svn-akpm/libmudflap/mf-runtime.c	2006-03-24 22:31:41.000000000 -0800
@@ -306,7 +306,7 @@ __mf_set_default_options ()
 #endif
 }
 
-static struct option
+static struct mf_option
 {
   char *name;
   char *description;
@@ -432,7 +432,7 @@ options [] =
 static void
 __mf_usage ()
 {
-  struct option *opt;
+  struct mf_option *opt;
 
   fprintf (stderr,
            "This is a %s%sGCC \"mudflap\" memory-checked binary.\n"
@@ -506,7 +506,7 @@ __mf_set_options (const char *optstr)
 int
 __mfu_set_options (const char *optstr)
 {
-  struct option *opts = 0;
+  struct mf_option *opts = 0;
   char *nxt = 0;
   long tmp = 0;
   int rc = 0;
_


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]