|
1
13
不能全局禁用此警告,但可以使用
|
|
|
2
9
我现在没有Delphi编译器,但是重新排列代码以删除
也见 How to disable a warning in Delphi about âreturn value ⦠might be undefinedâ? . |
|
3
1
您可以使用一个巧妙的技巧来愚弄编译器。将库函数定义为:
然后您可以将函数编写为:
编译器认为您已经写入了result,因为它是一个var参数,并且停止了漂白。 |