ntsec patch for setup

Pavel Tsekov ptsekov@gmx.net
Fri Feb 28 18:23:00 GMT 2003


On Fri, 28 Feb 2003, Pavel Tsekov wrote:

> > 2) gcc2 (not g++2) chokes on some lines in /usr/include/mingw/string.h. I
> > had to patch as below, adding prototypes before the functions declared
> > inline.
> 
> There are also some complaints about autoload.c. Will see what I can do.

The attached patch will cure some of the warnings in autoload.c, but not 
all. I don't know how to fix the others. Its too cryptic for me ;)

The patch fixes these warnings:

../setup/autoload.c:36: warning: initialization discards qualifiers from 
pointer target type
../setup/autoload.c:49: warning: initialization discards qualifiers from 
pointer target type
../setup/autoload.c:63: warning: function declaration isn't a prototype

These I cannot handle:

../setup/autoload.c:36: warning: `wininet_info' defined but not used
../setup/autoload.c:49: warning: `advapi32_info' defined but not used
../setup/autoload.c:67: warning: `autoload_common' defined but not used
-------------- next part --------------
Index: autoload.c
===================================================================
RCS file: /cvs/cygwin-apps/setup/autoload.c,v
retrieving revision 2.3
diff -u -p -r2.3 autoload.c
--- autoload.c	13 Nov 2001 01:49:31 -0000	2.3
+++ autoload.c	28 Feb 2003 16:31:49 -0000
@@ -19,7 +19,7 @@ static const char *cvsid = "\n%%% $Id: a
 #include "win32.h"
 
 typedef struct {
-  char *name;
+  const char *name;
   HINSTANCE handle;
 } DllInfo;
 
@@ -60,7 +60,7 @@ typedef struct {
   char name[100];
 } AutoEntry;
 
-static void autoload_common () __asm__ ("autoload_common");
+static void autoload_common (int) __asm__ ("autoload_common");
 
 static void
 autoload_common (int x)


More information about the Cygwin-apps mailing list