You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2024/01/07 18:14:00 UTC

[jira] [Created] (PROTON-2789) Compile on Windows (msvc) with the /permissive- flag

Jiri Daněk created PROTON-2789:
----------------------------------

             Summary: 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


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	C:\Users\Vitorio\source\repos\jiridanek\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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org