Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 为什么Xcode不警告此代码无法访问?_Objective C_Xcode_Warnings - Fatal编程技术网

Objective c 为什么Xcode不警告此代码无法访问?

Objective c 为什么Xcode不警告此代码无法访问?,objective-c,xcode,warnings,Objective C,Xcode,Warnings,以下代码确实被标记为不可访问: 但是,如果我简单地将其更改为以下内容,则警告将消失。为什么? 在Clang alpha.deadcode.UnreachableCode alpha检查中似乎是Xcode问题 更新>> 我签入了xcode 8,问题不存在 根据您的发现,这不是Xcode(而是LLVM?)问题。@Shallowthough似乎是Clang中的问题这是我的想法(Clang是LLVM的前端)。请检查答案以澄清您的疑问

以下代码确实被标记为不可访问:

但是,如果我简单地将其更改为以下内容,则警告将消失。为什么?


在Clang alpha.deadcode.UnreachableCode alpha检查中似乎是Xcode问题

更新>>

我签入了xcode 8,问题不存在


根据您的发现,这不是Xcode(而是LLVM?)问题。@Shallowthough似乎是Clang中的问题这是我的想法(Clang是LLVM的前端)。请检查答案以澄清您的疑问