diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-24 15:28:57 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-24 15:28:57 +0100 |
| commit | e341a34572ac35dd913172aaf84865166adb1a3c (patch) | |
| tree | 5441a514cdf1074bdf00fff1f2f5d6f6a1c8fe8b /crates/nasm | |
| parent | bbf91bf3abaff31231763352af405a2c22061c90 (diff) | |
| download | tools.nes-e341a34572ac35dd913172aaf84865166adb1a3c.tar.gz tools.nes-e341a34572ac35dd913172aaf84865166adb1a3c.zip | |
nasm: Also show warnings when there are errors
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/nasm')
| -rw-r--r-- | crates/nasm/src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs index ff8bcae..1a0ffea 100644 --- a/crates/nasm/src/main.rs +++ b/crates/nasm/src/main.rs @@ -110,6 +110,14 @@ fn main() -> Result<()> { } } Err(errors) => { + for warning in assembler.warnings() { + if warn_as_errors { + eprintln!("error: {}", warning); + error_count += 1; + } else { + eprintln!("warning: {}", warning); + } + } for err in errors { eprintln!("error: {}", err); error_count += 1; |
