Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Compiler warning #6075

Frederik_Vandenberg
1,745 Views

Hi,

When I compile thecode

integer fhandle, nlines, ncols

lstat = SetConsoleCursorPosition(fhandle, wpos)


integer(kind=4) rval, ii, event
call ZeroMemory(loc(sinfo),ii)

I get the message from Intel 12 on Windows 7 64 bits:
warning #6075: The data type of the actual argument does not match the definition. [FHANDLE]

The data type of the actual argument does not match the definition. [II]

What is the problem here?

best regards,
Erik


0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,745 Views
You have declared as INTEGER(4) variables that need to be an addressed-sized integer. In the call to ZeroMemory, the length is INTEGER(SIZE_T). You also have a handle that is apparently declared as INTEGER(4) - this should be INTEGER(HANDLE).
0 Kudos
Frederik_Vandenberg
1,745 Views
Hi Steve,

It is already a while back, but your answer helped me to solve the problem quickly.

Thanks,
Frederik
0 Kudos
Reply