mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
fix warnings
This commit is contained in:
parent
2a163d5f53
commit
bc05606ab3
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: app_conf_init.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: init config for app
|
||||
@ -47,7 +47,7 @@ static ret_t app_conf_prepare_default(const char* url, const char* default_url)
|
||||
data_reader_t* reader = data_reader_factory_create_reader(data_reader_factory(), default_url);
|
||||
if (reader != NULL) {
|
||||
uint32_t size = data_reader_get_size(reader);
|
||||
if (size >= 0) {
|
||||
if (size > 0) {
|
||||
data_writer_t* writer = data_writer_factory_create_writer(data_writer_factory(), url);
|
||||
if (writer != NULL) {
|
||||
void* buff = TKMEM_CALLOC(1, size + 1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: conf_json.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: json
|
||||
@ -322,8 +322,6 @@ static ret_t conf_json_save_node_value_simple(conf_node_t* node, str_t* str, uin
|
||||
return str_append_double(str, "%.4f", value_double(&v));
|
||||
}
|
||||
}
|
||||
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
static ret_t conf_json_save_node_value(conf_node_t* node, str_t* str, uint32_t level) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: ubjson.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: ubjson
|
||||
@ -52,8 +52,6 @@ static ret_t conf_ubjson_save_node_value_simple(conf_node_t* node, ubjson_writer
|
||||
} else {
|
||||
return ubjson_writer_write_int(writer, value_int(&v));
|
||||
}
|
||||
/*FIXME*/
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
static ret_t conf_ubjson_save_node_value(conf_node_t* node, ubjson_writer_t* writer) {
|
||||
|
Loading…
Reference in New Issue
Block a user