1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix build with GCC 3.4.2. Note: patches were submitted by someone else,

but I accidentally deleted the email, so I had to do these myself.  Thanks
to womever you were that sent the patches, though.
This commit is contained in:
Joe Marcus Clarke 2004-08-13 17:25:37 +00:00
parent 677fd7efaa
commit 8fc1593a24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116133
3 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,37 @@
--- src/libwsdl/wsdl-soap-memory.c.orig Fri Aug 13 13:21:36 2004
+++ src/libwsdl/wsdl-soap-memory.c Fri Aug 13 13:23:14 2004
@@ -33,17 +33,15 @@
while (param->name != NULL) {
if (param->typecode == NULL) {
- g_warning (G_GNUC_FUNCTION
- ": Parameter %s has no typecode!",
- param->name);
+ g_warning ("%s: Parameter %s has no typecode!",
+ G_GNUC_FUNCTION, param->name);
} else {
if (param->param == NULL) {
- g_warning (G_GNUC_FUNCTION
- ": Parameter %s has no "
+ g_warning ("%s: Parameter %s has no "
"memory location!",
- param->name);
+ G_GNUC_FUNCTION, param->name);
} else {
- memset (param->param,
+ memset (param->param,
'\0',
wsdl_typecode_size (param->typecode));
}
@@ -71,9 +69,8 @@
while (param->name != NULL) {
if (param->typecode == NULL) {
- g_warning (G_GNUC_FUNCTION
- ": Parameter %s has no typecode!",
- param->name);
+ g_warning ("%s: Parameter %s has no typecode!",
+ G_GNUC_FUNCTION, param->name);
} else {
if (param->param != NULL &&
*(guchar **) param->param != NULL &&

View File

@ -0,0 +1,20 @@
--- src/libwsdl/wsdl-soap-parse.c.orig Fri Aug 13 13:20:50 2004
+++ src/libwsdl/wsdl-soap-parse.c Fri Aug 13 13:21:05 2004
@@ -37,7 +37,7 @@
switch (wsdl_typecode_kind (typecode)) {
case WSDL_TK_GLIB_NULL:
- g_warning ("Invalid typecode NULL in " G_GNUC_FUNCTION);
+ g_warning ("Invalid typecode NULL in %s",G_GNUC_FUNCTION);
break;
case WSDL_TK_GLIB_VOID:
@@ -203,7 +203,7 @@
/* Handled elsewhere */
break;
case WSDL_TK_GLIB_MAX:
- g_warning ("Invalid typecode MAX in " G_GNUC_FUNCTION);
+ g_warning ("Invalid typecode MAX in %s",G_GNUC_FUNCTION);
break;
}
}

View File

@ -0,0 +1,38 @@
--- src/libwsdl/wsdl-typecodes.c.orig Fri Aug 13 13:17:44 2004
+++ src/libwsdl/wsdl-typecodes.c Fri Aug 13 13:18:45 2004
@@ -977,7 +977,7 @@
{
switch (tc->kind) {
case WSDL_TK_GLIB_NULL:
- g_warning ("Invalid typecode NULL in " G_GNUC_FUNCTION);
+ g_warning ("Invalid typecode NULL in %s",G_GNUC_FUNCTION);
return (0);
break;
@@ -1082,7 +1082,7 @@
break;
case WSDL_TK_GLIB_MAX:
- g_warning ("Invalid typecode MAX in " G_GNUC_FUNCTION);
+ g_warning ("Invalid typecode MAX in %s",G_GNUC_FUNCTION);
return (0);
break;
}
@@ -1106,7 +1106,7 @@
{
switch (tc->kind) {
case WSDL_TK_GLIB_NULL:
- g_warning ("Invalid typecode NULL in " G_GNUC_FUNCTION);
+ g_warning ("Invalid typecode NULL in %s",G_GNUC_FUNCTION);
return (0);
break;
@@ -1218,7 +1218,7 @@
break;
case WSDL_TK_GLIB_MAX:
- g_warning ("Invalid typecode MAX in " G_GNUC_FUNCTION);
+ g_warning ("Invalid typecode MAX in %s",G_GNUC_FUNCTION);
return (0);
break;
}