You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
Using latest Rust nightly, accessing static extern require unsafe (see rust-lang/rust#35112):
The examples now produce this error:
% rustc --version
rustc 1.13.0-nightly (55bf6a4f8 2016-09-18)
% cargo build --example ex_2
Compiling ncurses v5.82.0 (file:///home/gyscos/fetched/ncurses-rs)
warning: use of extern static requires unsafe function or block (error E0133), #[warn(safe_extern_statics)] on by default
--> examples/ex_2.rs:23:10
|
23 | keypad(stdscr, true);
| ^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue 36247 <https://github.com/rust-lang/rust/issues/35112>
Finished debug [unoptimized + debuginfo] target(s) in 0.21 secs
The text was updated successfully, but these errors were encountered:
#116 moves these variables to an internal module, and exposes safe wrapper functions instead. Examples have been updated.
NOTE: since it changes those from variable to functions, it probably breaks most code that use those.
I'm not sure how to solve this issue without going through a function though.
Also, a "useless unsafe block" warning may appear on older compilers (including the current stable branch).
Using latest Rust nightly, accessing static extern require unsafe (see rust-lang/rust#35112):
The examples now produce this error:
The text was updated successfully, but these errors were encountered: