Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
e18a1564
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e18a1564
编写于
5月 31, 2018
作者:
K
Khaled Al-Hassanieh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed multiple warnings - 3
上级
46f46522
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
6 deletion
+11
-6
contracts/test_api/test_action.cpp
contracts/test_api/test_action.cpp
+1
-1
contracts/test_api/test_datastream.cpp
contracts/test_api/test_datastream.cpp
+2
-2
contracts/test_api_db/test_db.cpp
contracts/test_api_db/test_db.cpp
+5
-0
libraries/fc/src/io/json.cpp
libraries/fc/src/io/json.cpp
+1
-1
programs/eosio-applesedemo/main.cpp
programs/eosio-applesedemo/main.cpp
+2
-2
未找到文件。
contracts/test_api/test_action.cpp
浏览文件 @
e18a1564
...
...
@@ -152,7 +152,7 @@ void test_action::test_cf_action() {
publication_time
();
eosio_assert
(
false
,
"system_api should not be allowed"
);
}
else
if
(
cfa
.
payload
==
210
)
{
send_inline
(
"hello"
,
6
);
send_inline
(
(
char
*
)
"hello"
,
6
);
eosio_assert
(
false
,
"transaction_api should not be allowed"
);
}
else
if
(
cfa
.
payload
==
211
)
{
send_deferred
(
N
(
testapi
),
N
(
testapi
),
"hello"
,
6
);
...
...
contracts/test_api/test_datastream.cpp
浏览文件 @
e18a1564
...
...
@@ -74,13 +74,13 @@ void test_datastream::test_basic()
int
a
[
2
];
bool
operator
==
(
const
StaticArray
&
o
)
const
{
return
a
[
0
]
==
o
.
a
[
0
]
&&
a
[
1
]
==
o
.
a
[
1
];
}
};
testtype
<
StaticArray
>::
run
({
10
,
20
},
"StaticArray"
);
testtype
<
StaticArray
>::
run
({
{
10
,
20
}
},
"StaticArray"
);
testtype
<
std
::
string
>::
run
(
"hello"
,
"string"
);
testtype
<
std
::
vector
<
int
>
>::
run
({
10
,
20
,
30
},
"vector"
);
testtype
<
std
::
vector
<
int
>
>::
run
({},
"empty vector"
);
testtype
<
std
::
array
<
int
,
3
>
>::
run
({
10
,
20
,
30
},
"std::array<T,N>"
);
testtype
<
std
::
array
<
int
,
3
>
>::
run
({
{
10
,
20
,
30
}
},
"std::array<T,N>"
);
testtype
<
std
::
map
<
int
,
std
::
string
>
>::
run
({{
1
,
"apple"
},
{
2
,
"cat"
},
{
3
,
"panda"
}},
"map"
);
testtype
<
std
::
tuple
<
int
,
std
::
string
,
double
>
>::
run
({
1
,
"abc"
,
3.3333
},
"tuple"
);
}
...
...
contracts/test_api_db/test_db.cpp
浏览文件 @
e18a1564
...
...
@@ -536,6 +536,9 @@ void test_db::idx_double_nan_lookup_fail(uint64_t receiver, uint64_t, uint64_t)
}
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
void
test_db
::
misaligned_secondary_key256_tests
(
uint64_t
/* receiver */
,
uint64_t
,
uint64_t
)
{
auto
key
=
eosio
::
key256
::
make_from_word_sequence
<
uint64_t
>
(
0ULL
,
0ULL
,
0ULL
,
42ULL
);
char
*
ptr
=
(
char
*
)(
&
key
);
...
...
@@ -545,3 +548,5 @@ void test_db::misaligned_secondary_key256_tests(uint64_t /* receiver */, uint64_
// test that find_primary doesn't crash on unaligned data
db_idx256_find_primary
(
N
(
testapi
),
N
(
testtable
),
N
(
testapi
),
(
eosio
::
key256
*
)(
ptr
),
2
,
0
);
}
#pragma clang diagnostic pop
libraries/fc/src/io/json.cpp
浏览文件 @
e18a1564
...
...
@@ -657,7 +657,7 @@ namespace fc
return
;
}
default:
FC_THROW_EXCEPTION
(
fc
::
invalid_arg_exception
,
"Unsupported variant type: "
+
v
.
get_type
(
)
);
FC_THROW_EXCEPTION
(
fc
::
invalid_arg_exception
,
"Unsupported variant type: "
+
std
::
to_string
(
v
.
get_type
()
)
);
}
}
...
...
programs/eosio-applesedemo/main.cpp
浏览文件 @
e18a1564
...
...
@@ -34,7 +34,7 @@ CFDictionaryRef CopyOurKeyInfo() {
CFDictionaryRef
keyAttrDic
=
CFDictionaryCreate
(
nullptr
,
keyAttrKeys
,
keyAttrValues
,
sizeof
(
keyAttrKeys
)
/
sizeof
(
keyAttrKeys
[
0
]),
&
kCFTypeDictionaryKeyCallBacks
,
&
kCFTypeDictionaryValueCallBacks
);
CFDictionaryRef
attributes
=
nullptr
;
OSStatus
ret
=
SecItemCopyMatching
(
keyAttrDic
,
(
CFTypeRef
*
)
&
attributes
);
SecItemCopyMatching
(
keyAttrDic
,
(
CFTypeRef
*
)
&
attributes
);
CFRelease
(
keyAttrDic
);
return
attributes
;
...
...
@@ -296,4 +296,4 @@ int main(int argc, char* argv[]) {
cout
<<
all_desc
<<
endl
;
return
0
;
}
\ No newline at end of file
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录