dlls/winaspi/aspi.c and SCSI_Linux_CheckDevices()

Gerald Pfeifer gerald at pfeifer.com
Wed Jul 6 06:21:52 CDT 2005


This is a follow-up to

  revision 1.22
  date: 2005/07/05 11:05:50;  author: julliard;  state: Exp;  lines: +1 -1
  Stefan Huehner <stefan at huehner.org>
  Fix some more -Wmissing-declarations warnings.

which improved the situation (making SCSI_Linux_CheckDevices() static),
but allowed the compiler to detect this unused function on non-Linux
platforms.

Tested on SUSE LINUX 9.3 and FreeBSD 4.10.

Gerald

ChangeLog:
SCSI_Linux_CheckDevices() is Linux-only as well.

Index: dlls/winaspi/aspi.c
===================================================================
RCS file: /home/wine/wine/dlls/winaspi/aspi.c,v
retrieving revision 1.22
diff -u -3 -p -r1.22 aspi.c
--- dlls/winaspi/aspi.c	5 Jul 2005 11:05:50 -0000	1.22
+++ dlls/winaspi/aspi.c	6 Jul 2005 11:19:04 -0000
@@ -560,7 +560,6 @@ SCSI_MapHCtoController()
 	RegCloseKey(hkeyScsi);
 	return;
 }
-#endif
 
 static int SCSI_Linux_CheckDevices(void)
 {
@@ -582,6 +581,7 @@ static int SCSI_Linux_CheckDevices(void)
     }
     return 1;
 }
+#endif
 
 static void
 SCSI_GetProcinfo()



More information about the wine-patches mailing list