![]() |
Visual 2017 & v 18.2.0 compilation warning |
Post Reply ![]() |
Author | |
angelsoriasanagustin ![]() Groupie ![]() Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
![]() ![]() ![]() ![]() ![]() 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!
|
|
![]() |
|
angelsoriasanagustin ![]() Groupie ![]() Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
![]() ![]() ![]() ![]() ![]() |
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 !!
|
|
![]() |
|
angelsoriasanagustin ![]() Groupie ![]() Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |