解决Empty paragraph passed to 和warning: directory not found for option 的警告
来源:互联网 发布:手机音乐闪光灯软件 编辑:程序博客网 时间:2024/05/28 20:18
问题:Empty paragraph passed to
- Xcode8升级后,之前添加的注释会有很多警告
解决方法
- 基础知识,就是在编译选项中,添加警告屏蔽
解决步骤
显示警告信息
查看警告类型
屏蔽警告
W是前缀,这个前缀表示的是 打开这种类型的警告 如果我们是要关闭某种类型的警告的话, 要将 -W换成 -Wno-- 第一种Xcode编译配置简单粗暴
第二种局部屏蔽编译警告
写法一
由于pragma
为编译预处理命令- 如果命令写在
.m
文件中,作用于为当前.m
- 如果命令写在
.h
文件中,作用域为包含该.h
文件的所有.m
文件
建议使用写法二
#pragma clang diagnostic ignored "-Wdocumentation"
- 如果命令写在
写法二
作用域只局限于push
和pop
之间#pragma clang diagnostic push#pragma clang diagnostic ignored "-Wdocumentation"//要去除警告的代码//#pragma clang diagnostic pop
- 第一种Xcode编译配置简单粗暴
问题:warning: directory not found for option
根据下图操作,删除或修改对应的警告内容:
0 0
- 解决Empty paragraph passed to 和warning: directory not found for option 的警告
- 解决warning: directory not found for option:xxxxxx的警告
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 如何解决警告 warning: directory not found for option
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- Xcode解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- iOS解决警告ld: warning: directory not found for option ''
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- iOS 解决警告“ld: warning: directory not found for option”
- 如何查找程序中的逻辑错误
- C++访问控制符详解
- CRC32算法实现
- poj1364King_差分约束系统
- 页面输出换行的问题
- 解决Empty paragraph passed to 和warning: directory not found for option 的警告
- 红宝书 第18章整理——XML入门
- java正则匹配
- sqlalchemy.ext.declarative.api.DeclarativeMeta转json
- 欢迎使用CSDN-markdown编辑器
- Circular view path [faults]: would dispatch back to the current handler URL [/pulsar/faults] again
- PHP7.1安装yaf扩展
- typedef 的用法总结
- 自学之路