Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
56a739bf
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
大约 1 年 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
56a739bf
编写于
12月 19, 2010
作者:
J
John Bowler
提交者:
Glenn Randers-Pehrson
12月 19, 2010
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Minor changes to work round warnings in gcc 3.4
上级
8f6628ed
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
png.c
png.c
+3
-4
pngvalid.c
pngvalid.c
+11
-10
未找到文件。
png.c
浏览文件 @
56a739bf
...
...
@@ -441,11 +441,10 @@ png_free_data(png_structp png_ptr, png_infop info_ptr, png_uint_32 mask,
}
#endif
if
(
num
=
=
-
1
)
info_ptr
->
free_me
&=
~
mask
;
if
(
num
!
=
-
1
)
mask
&=
~
PNG_FREE_MUL
;
else
info_ptr
->
free_me
&=
~
(
mask
&
~
PNG_FREE_MUL
);
info_ptr
->
free_me
&=
~
mask
;
}
/* This is an internal routine to free any memory that the info struct is
...
...
pngvalid.c
浏览文件 @
56a739bf
...
...
@@ -2221,20 +2221,21 @@ make_size_image(png_store* PNG_CONST ps, png_byte PNG_CONST colour_type,
png_uint_32
PNG_CONST
w
,
png_uint_32
PNG_CONST
h
,
int
PNG_CONST
do_interlace
)
{
char
name
[
FILE_NAME_SIZE
];
context
(
ps
,
fault
);
/* Make a name and get an appropriate id: */
PNG_CONST
png_uint_32
id
=
FILEID
(
colour_type
,
bit_depth
,
interlace_type
,
w
,
h
,
do_interlace
);
standard_name_from_id
(
name
,
sizeof
name
,
0
,
id
);
Try
{
png_infop
pi
;
png_structp
pp
;
unsigned
int
pixel_size
;
png_structp
pp
=
set_store_for_write
(
ps
,
&
pi
,
name
);
/* Make a name and get an appropriate id for the store: */
char
name
[
FILE_NAME_SIZE
];
PNG_CONST
png_uint_32
id
=
FILEID
(
colour_type
,
bit_depth
,
interlace_type
,
w
,
h
,
do_interlace
);
standard_name_from_id
(
name
,
sizeof
name
,
0
,
id
);
pp
=
set_store_for_write
(
ps
,
&
pi
,
name
);
/* In the event of a problem return control to the Catch statement below
* to do the clean up - it is not possible to 'return' directly from a Try
...
...
@@ -2455,8 +2456,8 @@ static PNG_CONST struct
};
static
void
make_error
(
png_store
*
ps
,
png_byte
PNG_CONST
colour_type
,
png_byte
bit_depth
,
int
interlace_type
,
int
test
,
png_const_charp
name
)
make_error
(
png_store
*
volatile
ps
,
png_byte
PNG_CONST
colour_type
,
png_byte
bit_depth
,
int
interlace_type
,
int
test
,
png_const_charp
name
)
{
context
(
ps
,
fault
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录