about summary refs log tree commit diff
path: root/src/librustrt
diff options
context:
space:
mode:
authorJakub Wieczorek <jakub@jakub.cc>2014-06-06 15:51:42 +0200
committerJakub Wieczorek <jakub@jakub.cc>2014-06-08 13:36:28 +0200
commitf7d86b2f4ace416a65e84603082c756b8b5dc43e (patch)
tree9c47bd9132d7f323bde048e1fe1998c2d5a01692 /src/librustrt
parent0271224bdae26260ab498f47323997f9edb5879e (diff)
downloadrust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.tar.gz
rust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.zip
Remove the dead code identified by the new lint
Diffstat (limited to 'src/librustrt')
-rw-r--r--src/librustrt/mutex.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustrt/mutex.rs b/src/librustrt/mutex.rs
index fccbe4a15e9..c2bf04917d2 100644
--- a/src/librustrt/mutex.rs
+++ b/src/librustrt/mutex.rs
@@ -339,10 +339,12 @@ mod imp {
         #[cfg(target_arch = "mips")]
         static __SIZEOF_PTHREAD_COND_T: uint = 48 - 8;
 
+        #[repr(C)]
         pub struct pthread_mutex_t {
             __align: libc::c_longlong,
             size: [u8, ..__SIZEOF_PTHREAD_MUTEX_T],
         }
+        #[repr(C)]
         pub struct pthread_cond_t {
             __align: libc::c_longlong,
             size: [u8, ..__SIZEOF_PTHREAD_COND_T],