Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

__stdcall warning with 2023.1

Daniel_D
Novice
1,619 Views

Hi,

 

I try to switch to th latest intel DPC compiler to make use of the sycl function in the future:

Daniel_D_0-1681287403262.png

 

if I compile my project I get thousands of this warning:


1> T:\\3rdParty\\boost_1_81_0\boost/asio/detail/win_iocp_file_service.hpp(270,17): : warning : '__stdcall' calling convention is not supported for this target [-Wignored-attributes]

 

I add '-Wignored-attributes' to the compiler options:

Daniel_D_1-1681287440422.png

 

but the warnings are still there - any way to get rid of these warnings?

 

Thanks,

Daniel

 

 

0 Kudos
2 Replies
Daniel_D
Novice
1,602 Views

I guess this is an issue of VS:

 

Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.5.4

 

Adding:


#ifdef __clang__
#pragma clang diagnostic ignored "-Wignored-attributes"
#endif

into the header fixes this problem.

 

0 Kudos
AishwaryaCV_Intel
Moderator
1,570 Views

Hi,


Thank you for posting in Intel Communities.


Glad to know that your issue is resolved. Thanks for sharing the solution with us. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks And Regards, 

Aishwarya


0 Kudos
Reply