fix #25666: fix warnings reg. ignored dllimport