Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch]: Fix build for GO32 and WIN32 targets
@ 2010-01-21 14:12 Kai Tietz
  2010-01-21 14:15 ` Pedro Alves
  2010-01-21 18:00 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Kai Tietz @ 2010-01-21 14:12 UTC (permalink / raw)
  To: gdb-patches

Hello,

the function check_syscall in file inflow.c is static, but isn't used
for GO32 and _WIN32 targets. So this leads to "defined but not used"
warning and breaks build. Patch fix this

2010-01-21  Kai Tietz  <kai.tietz@onevision.com>

	* inflow.c (check_syscall): Guard by #if clause for GO32 and WIN32 targets.

Tested for i686-pc-cygwin, x86_64-w64-mingw32, and i686-pc-mingw32. Ok
for apply?

Regards,
Kai

Index: inflow.c
===================================================================
RCS file: /cvs/src/src/gdb/inflow.c,v
retrieving revision 1.56
diff -u -r1.56 inflow.c
--- inflow.c    19 Jan 2010 09:39:12 -0000      1.56
+++ inflow.c    21 Jan 2010 14:11:55 -0000
@@ -633,7 +633,7 @@
   inferior_thisrun_terminal = ttyname;
 }

-
+#if !defined(__GO32__) && !defined(_WIN32)
 /* If RESULT, assumed to be the return value from a system call, is
    negative, print the error message indicated by errno and exit.
    MSG should identify the operation that failed.  */
@@ -646,6 +646,7 @@
       _exit (1);
     }
 }
+#endif

 void
 new_tty (void)



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-01-22 17:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 14:12 [patch]: Fix build for GO32 and WIN32 targets Kai Tietz
2010-01-21 14:15 ` Pedro Alves
2010-01-21 14:26   ` Kai Tietz
2010-01-21 18:00 ` Eli Zaretskii
2010-01-21 21:24   ` Pedro Alves
2010-01-21 22:05     ` Eli Zaretskii
2010-01-21 22:18       ` Pedro Alves
2010-01-22  7:36         ` Eli Zaretskii
2010-01-22 14:08           ` Pedro Alves
2010-01-22 17:09             ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox