编译某个工程时,发现有些警告无需修改,但是一直存在很不爽,所以需要忽略掉这类警告,按下面步骤:
1. 点击警告项右键,点击“Reveal in Log”;
2. 警告后面有类似[-Wxxxxxx]标记;
3. 在Build Settings - Apple LLVM 6.0 - Custom Compiler Flags - Other Warning Flags 中添加:-Wno-xxxxxx;
4. 再次编译工程,该类型警告不在出现。
编译某个工程时,发现有些警告无需修改,但是一直存在很不爽,所以需要忽略掉这类警告,按下面步骤:
1. 点击警告项右键,点击“Reveal in Log”;
2. 警告后面有类似[-Wxxxxxx]标记;
3. 在Build Settings - Apple LLVM 6.0 - Custom Compiler Flags - Other Warning Flags 中添加:-Wno-xxxxxx;
4. 再次编译工程,该类型警告不在出现。