Print Page | Close Window

Visual 2017 & v 18.2.0 compilation warning

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23549
Printed Date: 23 December 2024 at 5:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Visual 2017 & v 18.2.0 compilation warning
Posted By: angelsoriasanagustin
Subject: Visual 2017 & v 18.2.0 compilation warning
Date Posted: 25 January 2018 at 6:39am
Hi.

When I compile my code with VS 2017 and codeJock 18.0.2 I get this warning:

FIle: XTPEnableAdvancedWarnings.h(132)
warning #1495: unexpected token 'identifier' #pragma vtprdisp(push, off)

The word 'off' is marked.

Is it OK ?

Can I solve it ?

Thank!



Replies:
Posted By: angelsoriasanagustin
Date Posted: 25 January 2018 at 11:09am
I rectify...

The issue occurs with Intel Parallel Studio XE compiler. ( 2017 or 2018 versions )
If I compile in Visual Studio with MS compiler, no warning. If I compile with Intel compiler then I can see:

1>D:\........\XTPSkinManager\Common/Base/Diagnostic/XTPEnableAdvancedWarnings.h(132): warning #1495: unexpected token 'identifier'
1>  #pragma vtordisp(push, off)
1>                           ^

Solutions ?

Thanks !!


Posted By: angelsoriasanagustin
Date Posted: 02 February 2018 at 4:51am
The problem seems to be that "off" in undefined in Intel Composer XE:
#pragma vtordisp(push, off)
We change to:
#pragma vtordisp(push, 0)
Then the warning disappears.

Is the change ok ?

Thanks.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net