You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/01/07 20:16:00 UTC

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

    [ https://issues.apache.org/jira/browse/PROTON-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17804000#comment-17804000 ] 

ASF subversion and git services commented on PROTON-2789:
---------------------------------------------------------

Commit 36c16e7803a1c4945f0cfde9368dc27bcbede2bb in qpid-proton's branch refs/heads/main from Jiri Daněk
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=36c16e780 ]

PROTON-2789: Add /WX, /W4 /analyze to MSVC warning flags and use /wd to suppress all known warnings


> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org