Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
7a634d7d
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
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,70 +31,74 @@
#ifndef HB_NO_DIAGNOSTIC_PRAGMAS
/* 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.
*
* - Warnings whose scope can be expanded in future compiler versions shall
* be declared as "warning". Otherwise, either ignored or error.
*/
/* Setup */
#pragma GCC
diagnostic warning "-Wall"
#pragma GCC
diagnostic warning "-Wextra"
#pragma GCC
diagnostic ignored "-Wpragmas"
#pragma GCC
diagnostic ignored "-Wunknown-pragmas"
#pragma
clang
diagnostic ignored "-Wunknown-warning-option"
//#pragma GCC
diagnostic warning "-Weverything"
/* Setup
. Don't sort order within this category.
*/
#pragma GCC diagnostic warning "-Wall"
#pragma GCC diagnostic warning "-Wextra"
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#pragma
GCC
diagnostic ignored "-Wunknown-warning-option"
//#pragma GCC diagnostic warning "-Weverything"
/* Error. Should never happen. */
#pragma
clang
diagnostic error "-Wc++11-narrowing"
#pragma
clang diagnostic error "-Wstring-conversio
n"
#pragma
clang diagnostic error "-Wtautological-overlap-compare
"
#pragma GCC
diagnostic error "-Wcast-alig
n"
#pragma GCC
diagnostic error "-Wformat-security
"
#pragma GCC
diagnostic error "-Wimplicit-function-declaration
"
#pragma GCC
diagnostic error "-Winit-self
"
#pragma GCC
diagnostic error "-Wmissing-brac
es"
#pragma GCC
diagnostic error "-Wmissing-declaratio
ns"
#pragma GCC
diagnostic error "-Wmissing-prototypes
"
#pragma GCC
diagnostic error "-Wnested-externs
"
#pragma GCC
diagnostic error "-Wold-style-definition
"
#pragma GCC
diagnostic error "-Wpointer-arith
"
#pragma GCC
diagnostic error "-Wredundant-decls
"
#pragma GCC
diagnostic error "-Wstrict-prototypes
"
#pragma GCC
diagnostic error "-Wswitch-enum
"
#pragma GCC
diagnostic error "-Wunneeded-internal-declaration"
#pragma GCC
diagnostic error "-Wunused"
#pragma GCC
diagnostic error "-Wunused-local-typedefs"
#pragma GCC
diagnostic error "-Wunused-value"
#pragma GCC
diagnostic error "-Wunused-variable"
#pragma GCC
diagnostic error "-Wwrite-strings"
#pragma
GCC
diagnostic error "-Wc++11-narrowing"
#pragma
GCC diagnostic error "-Wcast-alig
n"
#pragma
GCC diagnostic error "-Wformat-security
"
#pragma GCC
diagnostic error "-Wimplicit-function-declaratio
n"
#pragma GCC
diagnostic error "-Winit-self
"
#pragma GCC
diagnostic error "-Wmissing-braces
"
#pragma GCC
diagnostic error "-Wmissing-declarations
"
#pragma GCC
diagnostic error "-Wmissing-prototyp
es"
#pragma GCC
diagnostic error "-Wnested-exter
ns"
#pragma GCC
diagnostic error "-Wold-style-definition
"
#pragma GCC
diagnostic error "-Wpointer-arith
"
#pragma GCC
diagnostic error "-Wredundant-decls
"
#pragma GCC
diagnostic error "-Wstrict-prototypes
"
#pragma GCC
diagnostic error "-Wstring-conversion
"
#pragma GCC
diagnostic error "-Wswitch-enum
"
#pragma GCC
diagnostic error "-Wtautological-overlap-compare
"
#pragma GCC diagnostic error "-Wunneeded-internal-declaration"
#pragma GCC diagnostic error "-Wunused"
#pragma GCC diagnostic error "-Wunused-local-typedefs"
#pragma GCC diagnostic error "-Wunused-value"
#pragma GCC diagnostic error "-Wunused-variable"
#pragma GCC diagnostic error "-Wwrite-strings"
/* Warning. To be investigated if happens. */
#pragma
clang diagnostic warning "-Wignored-pragma-optimize
"
#pragma GCC
diagnostic warning "-Wbuiltin-macro-redefined
"
#pragma GCC
diagnostic warning "-Wdisabled-optimization
"
#pragma GCC
diagnostic warning "-Wformat=2
"
#pragma GCC
diagnostic warning "-Wlogical-op"
#pragma GCC
diagnostic warning "-Wmissing-format-attribute"
#pragma GCC
diagnostic warning "-Wsign-compare"
#pragma GCC
diagnostic warning "-Wundef"
#pragma GCC
diagnostic warning "-Wvla"
#pragma
GCC diagnostic warning "-Wbuiltin-macro-redefined
"
#pragma GCC
diagnostic warning "-Wdisabled-optimization
"
#pragma GCC
diagnostic warning "-Wformat=2
"
#pragma GCC
diagnostic warning "-Wignored-pragma-optimize
"
#pragma GCC diagnostic warning "-Wlogical-op"
#pragma GCC diagnostic warning "-Wmissing-format-attribute"
#pragma GCC diagnostic warning "-Wsign-compare"
#pragma GCC diagnostic warning "-Wundef"
#pragma GCC diagnostic warning "-Wvla"
/* Ignored currently, but should be fixed at some point. */
#pragma GCC
diagnostic ignored "-Wconversion" // TODO fix
#pragma GCC
diagnostic ignored "-Wformat-signedness" // TODO fix
#pragma GCC
diagnostic ignored "-Wshadow" // TODO fix
#pragma GCC
diagnostic ignored "-Wunsafe-loop-optimizations" // TODO fix
#pragma GCC
diagnostic ignored "-Wunused-parameter" // TODO fix
#pragma GCC diagnostic ignored "-Wconversion" // TODO fix
#pragma GCC diagnostic ignored "-Wformat-signedness" // TODO fix
#pragma GCC diagnostic ignored "-Wshadow" // TODO fix
#pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" // TODO fix
#pragma GCC diagnostic ignored "-Wunused-parameter" // TODO fix
/* Ignored intentionally. */
#pragma
clang
diagnostic ignored "-Wclass-memaccess"
#pragma GCC
diagnostic ignored "-Wformat-nonliteral"
#pragma GCC
diagnostic ignored "-Wformat-zero-length"
#pragma GCC
diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC
diagnostic ignored "-Wpacked" // Erratic impl in clang
#pragma GCC
diagnostic ignored "-Wstrict-aliasing"
#pragma GCC
diagnostic ignored "-Wtype-limits"
#pragma
GCC
diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#pragma GCC diagnostic ignored "-Wformat-zero-length"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wpacked" // Erratic impl in clang
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
#ifdef HAVE_CONFIG_H
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录