File neon-0.24.7.Wimplicit-prototypes.patch of Package compat-neon024

--- configure
+++ configure	2004/09/25 09:01:11
@@ -18100,7 +18100,7 @@
 if test "$enable_warnings" = "yes"; then
    case $GCC:`uname` in
    yes:*)
-      CFLAGS="$CFLAGS -Wall -ansi-pedantic -Wmissing-declarations -Winline -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wcast-align -Wbad-function-cast -Wimplicit-prototypes -Wformat-security"
+      CFLAGS="$CFLAGS -Wall -ansi-pedantic -Wmissing-declarations -Winline -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wcast-align -Wbad-function-cast -Wformat-security"
       if test -z "$with_ssl" -o "$with_ssl" = "no"; then
 	 # OpenSSL headers fail strict prototypes checks
 	 CFLAGS="$CFLAGS -Wstrict-prototypes"
--- macros/neon.m4
+++ macros/neon.m4	2004/09/25 09:01:06
@@ -830,7 +830,7 @@
 if test "$enable_warnings" = "yes"; then
    case $GCC:`uname` in
    yes:*)
-      CFLAGS="$CFLAGS -Wall -ansi-pedantic -Wmissing-declarations -Winline -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wcast-align -Wbad-function-cast -Wimplicit-prototypes -Wformat-security"
+      CFLAGS="$CFLAGS -Wall -ansi-pedantic -Wmissing-declarations -Winline -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wcast-align -Wbad-function-cast -Wformat-security"
       if test -z "$with_ssl" -o "$with_ssl" = "no"; then
 	 # OpenSSL headers fail strict prototypes checks
 	 CFLAGS="$CFLAGS -Wstrict-prototypes"
--- src/ne_locks.c
+++ src/ne_locks.c	2004/09/25 09:30:24
@@ -505,7 +505,7 @@
     return end_element_common(lock, state, ctx->cdata->data);
 }
 
-static inline int can_accept(int parent, int id)
+static __inline__ int can_accept(int parent, int id)
 {
     return (parent == NE_XML_STATEROOT && id == ELM_prop) ||
         (parent == ELM_prop && id == ELM_lockdiscovery) ||
--- src/ne_request.c
+++ src/ne_request.c	2004/09/25 09:30:31
@@ -176,7 +176,7 @@
 
 /* Returns hash value for header 'name', converting it to lower-case
  * in-place. */
-static inline unsigned int hash_and_lower(char *name)
+static __inline__ unsigned int hash_and_lower(char *name)
 {
     char *pnt;
     unsigned int hash = 0;
@@ -887,7 +887,7 @@
 /* remove trailing EOL from 'buf', where strlen(buf) == *len.  *len is
  * adjusted in accordance with any changes made to the string to
  * remain equal to strlen(buf). */
-static inline void strip_eol(char *buf, ssize_t *len)
+static __inline__ void strip_eol(char *buf, ssize_t *len)
 {
     char *pnt = &buf[*len-1];
     while (pnt >= buf && (*pnt == '\r' || *pnt == '\n')) {
openSUSE Build Service is sponsored by