Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
7a634d7d
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7a634d7d
编写于
1月 18, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[pragma] Massage more
上级
16e5ba85
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
55 addition
and
51 deletion
+55
-51
src/hb.hh
src/hb.hh
+55
-51
未找到文件。
src/hb.hh
浏览文件 @
7a634d7d
...
@@ -31,24 +31,26 @@
...
@@ -31,24 +31,26 @@
#ifndef HB_NO_DIAGNOSTIC_PRAGMAS
#ifndef HB_NO_DIAGNOSTIC_PRAGMAS
/* Rules:
/* Rules:
* - If GCC understands a warning, we declare it as GCC. Otherwise, clang.
*
* - All pragmas are declared GCC even if they are clang ones. Otherwise GCC
* nags, even though we instruct it to ignore -Wunknown-pragmas. ¯\_(ツ)_/¯
*
* - Within each category, keep sorted.
* - Within each category, keep sorted.
*
* - Warnings whose scope can be expanded in future compiler versions shall
* - Warnings whose scope can be expanded in future compiler versions shall
* be declared as "warning". Otherwise, either ignored or error.
* be declared as "warning". Otherwise, either ignored or error.
*/
*/
/* Setup */
/* Setup
. Don't sort order within this category.
*/
#pragma GCC diagnostic warning "-Wall"
#pragma GCC diagnostic warning "-Wall"
#pragma GCC diagnostic warning "-Wextra"
#pragma GCC diagnostic warning "-Wextra"
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#pragma
clang
diagnostic ignored "-Wunknown-warning-option"
#pragma
GCC
diagnostic ignored "-Wunknown-warning-option"
//#pragma GCC diagnostic warning "-Weverything"
//#pragma GCC diagnostic warning "-Weverything"
/* Error. Should never happen. */
/* Error. Should never happen. */
#pragma clang diagnostic error "-Wc++11-narrowing"
#pragma GCC diagnostic error "-Wc++11-narrowing"
#pragma clang diagnostic error "-Wstring-conversion"
#pragma clang diagnostic error "-Wtautological-overlap-compare"
#pragma GCC diagnostic error "-Wcast-align"
#pragma GCC diagnostic error "-Wcast-align"
#pragma GCC diagnostic error "-Wformat-security"
#pragma GCC diagnostic error "-Wformat-security"
#pragma GCC diagnostic error "-Wimplicit-function-declaration"
#pragma GCC diagnostic error "-Wimplicit-function-declaration"
...
@@ -61,7 +63,9 @@
...
@@ -61,7 +63,9 @@
#pragma GCC diagnostic error "-Wpointer-arith"
#pragma GCC diagnostic error "-Wpointer-arith"
#pragma GCC diagnostic error "-Wredundant-decls"
#pragma GCC diagnostic error "-Wredundant-decls"
#pragma GCC diagnostic error "-Wstrict-prototypes"
#pragma GCC diagnostic error "-Wstrict-prototypes"
#pragma GCC diagnostic error "-Wstring-conversion"
#pragma GCC diagnostic error "-Wswitch-enum"
#pragma GCC diagnostic error "-Wswitch-enum"
#pragma GCC diagnostic error "-Wtautological-overlap-compare"
#pragma GCC diagnostic error "-Wunneeded-internal-declaration"
#pragma GCC diagnostic error "-Wunneeded-internal-declaration"
#pragma GCC diagnostic error "-Wunused"
#pragma GCC diagnostic error "-Wunused"
#pragma GCC diagnostic error "-Wunused-local-typedefs"
#pragma GCC diagnostic error "-Wunused-local-typedefs"
...
@@ -70,10 +74,10 @@
...
@@ -70,10 +74,10 @@
#pragma GCC diagnostic error "-Wwrite-strings"
#pragma GCC diagnostic error "-Wwrite-strings"
/* Warning. To be investigated if happens. */
/* Warning. To be investigated if happens. */
#pragma clang diagnostic warning "-Wignored-pragma-optimize"
#pragma GCC diagnostic warning "-Wbuiltin-macro-redefined"
#pragma GCC diagnostic warning "-Wbuiltin-macro-redefined"
#pragma GCC diagnostic warning "-Wdisabled-optimization"
#pragma GCC diagnostic warning "-Wdisabled-optimization"
#pragma GCC diagnostic warning "-Wformat=2"
#pragma GCC diagnostic warning "-Wformat=2"
#pragma GCC diagnostic warning "-Wignored-pragma-optimize"
#pragma GCC diagnostic warning "-Wlogical-op"
#pragma GCC diagnostic warning "-Wlogical-op"
#pragma GCC diagnostic warning "-Wmissing-format-attribute"
#pragma GCC diagnostic warning "-Wmissing-format-attribute"
#pragma GCC diagnostic warning "-Wsign-compare"
#pragma GCC diagnostic warning "-Wsign-compare"
...
@@ -88,7 +92,7 @@
...
@@ -88,7 +92,7 @@
#pragma GCC diagnostic ignored "-Wunused-parameter" // TODO fix
#pragma GCC diagnostic ignored "-Wunused-parameter" // TODO fix
/* Ignored intentionally. */
/* Ignored intentionally. */
#pragma
clang
diagnostic ignored "-Wclass-memaccess"
#pragma
GCC
diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#pragma GCC diagnostic ignored "-Wformat-zero-length"
#pragma GCC diagnostic ignored "-Wformat-zero-length"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录