mirror of
https://github.com/simonask/libyaml-safer
synced 2024-11-23 03:43:03 +00:00
Resolve unused_variables lints
This commit is contained in:
parent
14ef08e7b6
commit
ca3436c9eb
4 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ pub unsafe extern "C" fn yaml_string_join(
|
|||
a_end: *mut *mut yaml_char_t,
|
||||
b_start: *mut *mut yaml_char_t,
|
||||
b_pointer: *mut *mut yaml_char_t,
|
||||
b_end: *mut *mut yaml_char_t,
|
||||
_b_end: *mut *mut yaml_char_t,
|
||||
) -> libc::c_int {
|
||||
if *b_start == *b_pointer {
|
||||
return 1 as libc::c_int;
|
||||
|
|
|
@ -293,7 +293,7 @@ unsafe extern "C" fn yaml_emitter_anchor_node(emitter: *mut yaml_emitter_t, inde
|
|||
}
|
||||
}
|
||||
unsafe extern "C" fn yaml_emitter_generate_anchor(
|
||||
emitter: *mut yaml_emitter_t,
|
||||
_emitter: *mut yaml_emitter_t,
|
||||
anchor_id: libc::c_int,
|
||||
) -> *mut yaml_char_t {
|
||||
let anchor: *mut yaml_char_t = yaml_malloc(16 as libc::c_int as size_t) as *mut yaml_char_t;
|
||||
|
|
|
@ -1143,7 +1143,7 @@ unsafe extern "C" fn yaml_emitter_emit_node(
|
|||
}
|
||||
unsafe extern "C" fn yaml_emitter_emit_alias(
|
||||
mut emitter: *mut yaml_emitter_t,
|
||||
event: *mut yaml_event_t,
|
||||
_event: *mut yaml_event_t,
|
||||
) -> libc::c_int {
|
||||
if yaml_emitter_process_anchor(emitter) == 0 {
|
||||
return 0 as libc::c_int;
|
||||
|
@ -1242,7 +1242,7 @@ unsafe extern "C" fn yaml_emitter_emit_mapping_start(
|
|||
return 1 as libc::c_int;
|
||||
}
|
||||
unsafe extern "C" fn yaml_emitter_check_empty_document(
|
||||
emitter: *mut yaml_emitter_t,
|
||||
_emitter: *mut yaml_emitter_t,
|
||||
) -> libc::c_int {
|
||||
return 0 as libc::c_int;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![allow(non_camel_case_types, unused_parens, unused_variables)]
|
||||
#![allow(non_camel_case_types, unused_parens)]
|
||||
|
||||
use std::mem;
|
||||
|
||||
|
|
Loading…
Reference in a new issue