summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2016-12-29 04:12:18 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2016-12-29 04:12:19 +0900
commitcd9ba295447d9f62b6149b4c593f1c57887bec62 (patch)
treec5c94c08752796cf7c44d5b776a8a28d1ea61e70
parentd49bae228ca346e0e1e8d49d223b1207caece543 (diff)
Replace all non-fatal `error!`s with `warn!`s
-rw-r--r--bindgen/src/main.rs2
-rw-r--r--libbindgen/src/codegen/mod.rs2
-rw-r--r--libbindgen/src/ir/context.rs2
-rw-r--r--libbindgen/src/ir/ty.rs4
-rw-r--r--libbindgen/src/regex_set.rs2
5 files changed, 6 insertions, 6 deletions
diff --git a/bindgen/src/main.rs b/bindgen/src/main.rs
index b54d4af5..515d1d1a 100644
--- a/bindgen/src/main.rs
+++ b/bindgen/src/main.rs
@@ -35,7 +35,7 @@ pub fn main() {
match version.parsed {
None => warn!("Couldn't parse libclang version"),
Some(version) if version != expected_version => {
- error!("Using clang {:?}, expected {:?}",
+ warn!("Using clang {:?}, expected {:?}",
version,
expected_version);
}
diff --git a/libbindgen/src/codegen/mod.rs b/libbindgen/src/codegen/mod.rs
index 69d5f651..8b4993a8 100644
--- a/libbindgen/src/codegen/mod.rs
+++ b/libbindgen/src/codegen/mod.rs
@@ -528,7 +528,7 @@ impl CodeGenerator for Type {
if template_arg.is_named() {
let name = template_arg.name().unwrap();
if name.contains("typename ") {
- error!("Item contained `typename`'d template \
+ warn!("Item contained `typename`'d template \
parameter: {:?}", item);
return;
}
diff --git a/libbindgen/src/ir/context.rs b/libbindgen/src/ir/context.rs
index 3ffe50c8..5a94dd40 100644
--- a/libbindgen/src/ir/context.rs
+++ b/libbindgen/src/ir/context.rs
@@ -226,7 +226,7 @@ impl<'ctx> BindgenContext<'ctx> {
} else if let Some(usr) = declaration.usr() {
TypeKey::USR(usr)
} else {
- error!("Valid declaration with no USR: {:?}, {:?}",
+ warn!("Valid declaration with no USR: {:?}, {:?}",
declaration,
location);
TypeKey::Declaration(declaration)
diff --git a/libbindgen/src/ir/ty.rs b/libbindgen/src/ir/ty.rs
index 6859b753..d234caea 100644
--- a/libbindgen/src/ir/ty.rs
+++ b/libbindgen/src/ir/ty.rs
@@ -753,7 +753,7 @@ impl Type {
//
// https://github.com/jamesmunns/teensy3-rs/issues/9
if !ty.spelling().is_empty() {
- error!("invalid type {:?}", ty);
+ warn!("invalid type {:?}", ty);
} else {
warn!("invalid type {:?}", ty);
}
@@ -768,7 +768,7 @@ impl Type {
}
if !ty.spelling().is_empty() {
- error!("invalid type {:?}", ty);
+ warn!("invalid type {:?}", ty);
} else {
warn!("invalid type {:?}", ty);
}
diff --git a/libbindgen/src/regex_set.rs b/libbindgen/src/regex_set.rs
index 93130590..8747d285 100644
--- a/libbindgen/src/regex_set.rs
+++ b/libbindgen/src/regex_set.rs
@@ -37,7 +37,7 @@ impl RegexSet {
self.items.push(r);
}
Err(err) => {
- error!("Invalid pattern provided: {}, {:?}", s, err);
+ warn!("Invalid pattern provided: {}, {:?}", s, err);
}
}
}