diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-12-09 15:12:42 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-12-09 15:12:42 +0100 |
| commit | 8f23fdc9340167cf9d6d31a09705369c3b8acccb (patch) | |
| tree | cbb2d2bae907001afc24fe90db0ee2e104bf8aca /examples | |
| parent | 9865a7246df289bfa5f65ba47c883c4ce3e108a9 (diff) | |
deny warnings and unsafe code in tests and examples
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/full-syntax.rs | 1 | ||||
| -rw-r--r-- | examples/generics.rs | 1 | ||||
| -rw-r--r-- | examples/late-resources.rs | 1 | ||||
| -rw-r--r-- | examples/nested.rs | 1 | ||||
| -rw-r--r-- | examples/one-task.rs | 1 | ||||
| -rw-r--r-- | examples/preemption.rs | 1 | ||||
| -rw-r--r-- | examples/two-tasks.rs | 1 | ||||
| -rw-r--r-- | examples/zero-tasks.rs | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/examples/full-syntax.rs b/examples/full-syntax.rs index 9b6b394..a8f79a7 100644 --- a/examples/full-syntax.rs +++ b/examples/full-syntax.rs @@ -1,5 +1,6 @@ //! A showcase of the `app!` macro syntax #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/generics.rs b/examples/generics.rs index bc2fe7a..7cf9257 100644 --- a/examples/generics.rs +++ b/examples/generics.rs @@ -1,5 +1,6 @@ //! Working with resources in a generic fashion #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/late-resources.rs b/examples/late-resources.rs index 69a0ce8..d42431c 100644 --- a/examples/late-resources.rs +++ b/examples/late-resources.rs @@ -1,6 +1,7 @@ //! Demonstrates initialization of resources in `init`. #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/nested.rs b/examples/nested.rs index 1c164f8..d2309f3 100644 --- a/examples/nested.rs +++ b/examples/nested.rs @@ -3,6 +3,7 @@ //! If you run this program you'll hit the breakpoints as indicated by the //! letters in the comments: A, then B, then C, etc. #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/one-task.rs b/examples/one-task.rs index 38f0135..2e77676 100644 --- a/examples/one-task.rs +++ b/examples/one-task.rs @@ -1,5 +1,6 @@ //! An application with one task #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/preemption.rs b/examples/preemption.rs index 5fda37d..98dde8d 100644 --- a/examples/preemption.rs +++ b/examples/preemption.rs @@ -1,5 +1,6 @@ //! Two tasks running at *different* priorities with access to the same resource #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/two-tasks.rs b/examples/two-tasks.rs index 2200e5b..df6e784 100644 --- a/examples/two-tasks.rs +++ b/examples/two-tasks.rs @@ -1,5 +1,6 @@ //! Two tasks running at the *same* priority with access to the same resource #![deny(unsafe_code)] +#![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/examples/zero-tasks.rs b/examples/zero-tasks.rs index 58e6afc..b1ebab6 100644 --- a/examples/zero-tasks.rs +++ b/examples/zero-tasks.rs @@ -1,5 +1,6 @@ //! Minimal example with zero tasks #![deny(unsafe_code)] +#![deny(warnings)] // IMPORTANT always include this feature gate #![feature(proc_macro)] #![no_std] |
