Commit 989cbb6
fix(bios): -D warnings compatibility on nightly rustc
Follow-up to 895c69b: CI's `RUSTFLAGS=-D warnings` promoted four
warnings to errors under nightly — all latent in the BIOS path
until build-images.sh started compiling zamak-stage1/zamak-bios.
- `zamak-stage1/src/mbr.rs`, `zamak-bios/src/entry.rs`: drop the
`.intel_syntax noprefix` / `.att_syntax prefix` directives that
wrapped each `global_asm!`. Newer rustc emits `-D bad_asm_style`
with the message "Intel syntax is the default" — the directives
were redundant since `global_asm!` on x86 already defaults to
Intel syntax. The inner asm text is unchanged (still Intel).
- `zamak-bios/src/fat32.rs`: `#[allow(unused_imports)]` on `Vec`
(used transitively via `vec!`).
- `zamak-bios/src/main.rs`: `#[allow(unused_imports)]` on
`fat32::Fat32`, `#[allow(dead_code)]` on the VGA-text `println`
helper kept around for future debug instrumentation.
Verified locally: `RUSTFLAGS='-D warnings' ./zamak-test/build-images.sh`
compiles clean, and both `boot-smoke` (uefi) and `asm-verification`
suites still `[PASS]`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 895c69b commit 989cbb6
4 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | | - | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
213 | | - | |
214 | 216 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| 465 | + | |
464 | 466 | | |
465 | 467 | | |
466 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | | - | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | | - | |
127 | 129 | | |
0 commit comments