Skip to content

Commit

Permalink
Fix warnings in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarrugi committed Jul 22, 2018
1 parent 5923fc6 commit 010ed33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/ffi/c_calling_rust/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ rust_library(
cc_library(
name = "wrapper",
srcs = [":rusty"],
# We could link dynamically by setting crate_type to cdylib
linkstatic = True,
)

cc_test(
Expand Down
2 changes: 1 addition & 1 deletion examples/ffi/rust_calling_c/c/matrix_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void matrix_print(const Matrix* m) {
for (size_t j = 0; j < m->cols; ++j) {
uint64_t val = 0;
matrix_at(m, i, j, &val);
printf("%llu ", val);
printf("%lu ", val);
}
printf("\n");
}
Expand Down
1 change: 0 additions & 1 deletion examples/hello_runfiles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub fn get_runfiles_dir() -> io::Result<PathBuf> {
mod test {
use super::*;

use std::io;
use std::io::prelude::*;
use std::fs::File;

Expand Down

0 comments on commit 010ed33

Please sign in to comment.