summaryrefslogtreecommitdiff
path: root/src/sys/reboot.rs
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2016-07-11 21:28:06 +0300
committerSergey Bugaev <bugaevc@gmail.com>2016-07-13 10:19:37 +0300
commitc63f89cb47405329260c36ec905e7cfa92d239a0 (patch)
tree6039fae665121cf249f5f2451669d9f87d9fe72e /src/sys/reboot.rs
parent91b29abf648a53a16280c7c6d7547f30b8268a87 (diff)
downloadnix-c63f89cb47405329260c36ec905e7cfa92d239a0.zip
Ignore the overflow for constants
Force using the constants even on x86 where they do not fit into isize (c_int)
Diffstat (limited to 'src/sys/reboot.rs')
-rw-r--r--src/sys/reboot.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/reboot.rs b/src/sys/reboot.rs
index eedbf5ae..10abef91 100644
--- a/src/sys/reboot.rs
+++ b/src/sys/reboot.rs
@@ -3,6 +3,7 @@ use libc::c_int;
use void::Void;
use std::mem::drop;
+#[allow(overflowing_literals)]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum RebootMode {
Halt = 0xcdef0123,