Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Visual 2017 & v 18.2.0 compilation warning
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Visual 2017 & v 18.2.0 compilation warning

 Post Reply Post Reply
Author
Message
angelsoriasanagustin View Drop Down
Groupie
Groupie


Joined: 16 September 2015
Location: Spain
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote angelsoriasanagustin Quote  Post ReplyReply Direct Link To This Post Topic: Visual 2017 & v 18.2.0 compilation warning
    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!
Back to Top
angelsoriasanagustin View Drop Down
Groupie
Groupie


Joined: 16 September 2015
Location: Spain
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote angelsoriasanagustin Quote  Post ReplyReply Direct Link To This Post 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 !!
Back to Top
angelsoriasanagustin View Drop Down
Groupie
Groupie


Joined: 16 September 2015
Location: Spain
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote angelsoriasanagustin Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.