[
https://issues.apache.org/jira/browse/PROTON-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17820804#comment-17820804
]
ASF subversion and git services commented on PROTON-2789:
---------------------------------------------------------
Commit d8fe876da3ccd7de95e8a33e30e6de0278bfd061 in qpid-proton's branch
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=d8fe876da ]
PROTON-2789: One more warning as error that needs to be suppressed
> Compile on Windows (msvc) with the /permissive- flag
> ----------------------------------------------------
>
> Key: PROTON-2789
> URL: https://issues.apache.org/jira/browse/PROTON-2789
> Project: Qpid Proton
> Issue Type: Wish
> Components: build
> Affects Versions: proton-c-0.39.0
> Reporter: Jiri Daněk
> Priority: Major
>
> The /permissive- is a flag added in Visual Studio 2017. It makes the compiler
> be less permissive.
> https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170
> If it is used now, the build fails with 5 errors
> {noformat}
> Severity Code Description Project File Line Suppression
> State
> Error C2440 '=': cannot convert from 'bool' to 'PCCERT_CONTEXT'
> qpid-proton qpid-proton\c\src\ssl\schannel.cpp 212
> Error C2440 'initializing': cannot convert from 'const char [18]' to
> 'LPSTR' qpid-proton qpid-proton\c\src\ssl\schannel.cpp 2155
>
> Error C2664 'SECURITY_STATUS AcquireCredentialsHandleA(LPSTR,LPSTR,unsigned
> long,void *,void *,SEC_GET_KEY_FN,void *,PCredHandle,PTimeStamp)': cannot
> convert argument 2 from 'const char [45]' to 'LPSTR' qpid-proton
> qpid-proton\c\src\ssl\schannel.cpp 256
> Error C2664 'DWORD CertGetNameStringA(PCCERT_CONTEXT,DWORD,DWORD,void
> *,LPSTR,DWORD)': cannot convert argument 4 from 'const char [8]' to 'void *'
> qpid-proton qpid-proton\c\src\ssl\schannel.cpp 2091
> Error C2664 'DWORD CertGetNameStringA(PCCERT_CONTEXT,DWORD,DWORD,void
> *,LPSTR,DWORD)': cannot convert argument 4 from 'const char [8]' to 'void *'
> qpid-proton qpid-proton\c\src\ssl\schannel.cpp 2094
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]