ifolder/net-libs/gsoap/files/gsoap-03-initext.diff

30 lines
981 B
Diff

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-07-01 17:19:00 +0200
build: resolve compiler warning
An extern declaration must not be a definition.
wsdl2h.cpp:88:7: warning: 'mapfile' initialized and declared 'extern'
wsdl2h.cpp:89:7: warning: 'import_path' initialized and declared 'extern'
wsdl2h.cpp:90:7: warning: 'cwd_path' initialized and declared 'extern'
wsdl2h.cpp:91:7: warning: 'cppnamespace' initialized and declared 'extern'
---
gsoap/wsdl/wsdl2h.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: gsoap-2.8.3/gsoap/wsdl/wsdl2h.cpp
===================================================================
--- gsoap-2.8.3.orig/gsoap/wsdl/wsdl2h.cpp
+++ gsoap-2.8.3/gsoap/wsdl/wsdl2h.cpp
@@ -84,7 +84,7 @@ char *infile[MAXINFILES],
*proxy_host = NULL,
*proxy_userid = NULL,
*proxy_passwd = NULL;
-extern const char
+const char
*mapfile = WSDL_TYPEMAP_FILE,
*import_path = WSDL2H_IMPORT_PATH,
*cwd_path = NULL,