Blob Blame History Raw
--- gsoap-2.7/gsoap/src/symbol2.c	2008-10-02 12:36:22.000000000 -0500
+++ gsoap-2.7mf/gsoap/src/symbol2.c	2008-12-25 09:14:14.000000000 -0600
@@ -6127,7 +6127,7 @@
 }
 
 /* c_type_id returns the arraytype to be used in parameter declaration
-   Allows you to specify the identifier that acts acts as teh name of teh
+   Allows you to specify the identifier that acts acts as the name of the
    type of array */
 char *
 c_type_id(Tnode *typ, char *name)
@@ -7278,6 +7278,7 @@
   fprintf(fout,"\n\nSOAP_FMAC5 void SOAP_FMAC6 soap_delete_%s(struct soap *soap, %s)\n{\tsoap_delete(soap, p);\n}", c_ident(typ), c_type_id(typ, "*p"));
   fprintf(fout,"\n\nSOAP_FMAC3 %s * SOAP_FMAC4 soap_instantiate_%s(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)", c_type(typ), c_ident(typ));
   fprintf(fout,"\n{");
+  fprintf(fout,"\n\t(void)type; (void)arrayType; /* appease -Wall -Werror */");
   fprintf(fout, "\n\tDBGLOG(TEST, SOAP_MESSAGE(fdebug, \"soap_instantiate_%s(%%d, %%s, %%s)\\n\", n, type?type:\"\", arrayType?arrayType:\"\"));", c_ident(typ));
 
   fprintf(fout,"\n\tstruct soap_clist *cp = soap_link(soap, NULL, %s, n, soap_fdelete);", soap_type(typ));
@@ -7347,7 +7348,7 @@
   fprintf(fhead,"\nSOAP_FMAC3 void SOAP_FMAC4 soap_copy_%s(struct soap*, int, int, void*, size_t, const void*, size_t);", c_ident(typ));
   /* fprintf(fhead,"\n#ifdef __cplusplus\n}\n#endif"); */
   /* fprintf(fout,"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif"); */
-  fprintf(fout,"\nSOAP_FMAC3 void SOAP_FMAC4 soap_copy_%s(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)", c_ident(typ));
+  fprintf(fout,"\nSOAP_FMAC3 void SOAP_FMAC4 soap_copy_%s(struct soap */*soap*/, int /*st*/, int /*tt*/, void *p, size_t /*len*/, const void *q, size_t /*n*/)", c_ident(typ));
   fprintf(fout,"\n{");
   fprintf(fout,"\n\tDBGLOG(TEST, SOAP_MESSAGE(fdebug, \"Copying %s %%p -> %%p\\n\", q, p));", c_type(typ));
   fprintf(fout,"\n\t*(%s*)p = *(%s*)q;\n}", c_type(typ), c_type(typ));
@@ -7809,6 +7810,7 @@
     { if (is_external(typ))
         return;
         fprintf(fout,"\n\nvoid %s::soap_default(struct soap *soap)\n{", c_ident(typ)); 
+		fprintf(fout,"\n\t(void)soap; /* appease -Wall -Werror */");
         if ((s = has_soapref(typ)))
           fprintf(fout,"\n\tthis->%s = soap;", s);
 	d = get_Darraydims(typ);
@@ -7836,6 +7838,7 @@
 	}
         fprintf(fhead,"\nSOAP_FMAC3 void SOAP_FMAC4 soap_default_%s(struct soap*, %s);",c_ident(typ),c_type_id(typ, "*")); 
         fprintf(fout,"\n\nSOAP_FMAC3 void SOAP_FMAC4 soap_default_%s(struct soap *soap, %s)\n{", c_ident(typ),c_type_id(typ, "*a")); 
+		fprintf(fout,"\n\t(void)soap; /* appease -Wall -Werror */");
         if ((s = has_soapref(typ)))
           fprintf(fout,"\n\ta->%s = soap;", s);
 	d = get_Darraydims(typ);
@@ -9054,7 +9057,7 @@
       if (is_typedef(typ))
         fprintf(fout, "\n{\treturn soap_%s2s(soap, n);\n}", t_ident(typ));
       else if (is_boolean(typ))
-        fprintf(fout, "\n{\treturn soap_code_str(soap_codes_%s, n!=0);\n}", c_ident(typ));
+        fprintf(fout, "\n{\t(void)soap; /* appease -Wall -Werror */\n\treturn soap_code_str(soap_codes_%s, n!=0);\n}", c_ident(typ));
       else if (!is_mask(typ))
       { fprintf(fout, "\n{\tconst char *s = soap_code_str(soap_codes_%s, (long)n);", c_ident(typ));
         fprintf(fout, "\n\tif (s)\n\t\treturn s;");