Win32 msvc build warnings

Ranier VF <[email protected]> Thu, 1 Dec 2016 13:09:24 +0000
Newsgroups gmane.text.xml.xmlsec
Message-ID <BL2PR18MB0834ACC395110E1892BCAD65E38F0@BL2PR18MB0834.namprd18.prod.outlook.com>
Hi,
Is possible make small changes?

1. win32\makefile.msvc
Change /OPT:NOWIN98 to /RELEASE
Recent msvc compilers deprecated "NOWIN98" and generate error.

2. include\xmltree.h (line 53)
XMLSEC_EXPORT xmlNodePtr        xmlSecEnsureEmptyChild  (xmlNodePtr parent,
                                                         const xmlChar *name,
                                                         const xmlChar *ns);
to
XMLSEC_EXPORT xmlNodePtr        xmlSecEnsureEmptyChild  (const xmlNodePtr parent,
                                                         const xmlChar *name,
                                                         const xmlChar *ns);

to fix:
..\src\xmltree.c(312) : warning C4028: formal parameter 1 different from declaration

3. unreachable code with MSVC WIN32 defines?
c:\dll\xmlsec-1.2.23\src\openssl\evp_signatures.c(145) : warning C4702: unreachable code
c:\dll\xmlsec-1.2.23\src\openssl\signatures.c(180) : warning C4702: unreachable code
c:\dll\xmlsec-1.2.23\src\openssl\hmac.c(176) : warning C4702: unreachable code
c:\dll\xmlsec-1.2.23\src\openssl\digests.c(135) : warning C4702: unreachable code

Best regards,

Ranier Vilela
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec