Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to libc 0.2 #6

Closed
frewsxcv opened this issue Nov 21, 2015 · 3 comments
Closed

Upgrade to libc 0.2 #6

frewsxcv opened this issue Nov 21, 2015 · 3 comments

Comments

@frewsxcv
Copy link

No description provided.

@connorimes
Copy link
Member

I'm getting this warning after upgrading the libc dependency. The same occurs in each of the -sys binding crates that implement a particular function prototype that accepts a size_t. Is this a bug in the libc crate?

$ cargo build
   Compiling libc v0.2.2
   Compiling pkg-config v0.3.6
   Compiling energymon-sys v0.1.0 (file:///local/energymon-sys/energymon-dummy-sys)
   Compiling energymon-dummy-sys v0.1.0 (file:///local/energymon-sys/energymon-dummy-sys)
lib.rs:16:63: 16:69 warning: found type without foreign-function-safe representation annotation in foreign module, consider adding a #[repr(...)] attribute to the type, #[warn(improper_ctypes)] on by default
lib.rs:16     pub fn energymon_get_source_dummy(buffer: *mut c_char, n: size_t) -> *mut c_char;
                                                                        ^~~~~~

@connorimes
Copy link
Member

After some research, this warning should be fixed in 1.5 beta - see rust-lang/rust/pull/28779

@connorimes
Copy link
Member

Fixed in c2e0b01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants