문제

In light of the Apple's recent goto fail, I've decided to add -Wunreachable-code to existing LLVM flags (-Wall and -Wextra). However, the flag doesn't (seem to) work. For example, placing code after return; doesn't trigger the warning. Is the flag even functional (GCC supposedly removed it)? What am I missing?

도움이 되었습니까?

해결책

It works for me when:

  1. I enter the flag here warning setting
  2. Then clean project
  3. I receive this warning when I do a rebuild warning output
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top