Why is this an issue?

Old-style "DPI" specified subroutines are deprecated.

Use the new-style "DPI-C" instead which has a well-defined standardized calling convention.

How to fix it

Code examples

Noncompliant code example

import "DPI" function void foo();