频道分类

如何在Delphi中禁用关于“返回值...可能未定义”的警告?

作者:admin 来源: 日期:2020/1/14 12:40:02 人气: 标签:

 
解决方案
Are you sure you have done everything to solve the warning? Maybe you could post the code for us to look at?

You can turn off the warning locally this way:

{$WARN NO_RETVAL OFF}
function func(...): string;
begin
  ...
end;
{$WARN NO_RETVAL ON}