diff options
| author | rillig <rillig@NetBSD.org> | 2022-05-30 15:13:25 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-05-30 15:13:25 +0000 |
| commit | e557de9349523243d5413937823e1a2808d9745b (patch) | |
| tree | 924556fed92f5f70b895c225a6cb3103509eb695 /sys/dev/microcode/run/microcode.h | |
| parent | 1b34c220d618514049db4f0810e520494ac4159d (diff) | |
lint: report proper file name in assertion failures
When given the (obviously malformed) translation unit 'f=({;};}', lint
runs into an assertion failure. It reported this as occurring near
':1'. This location was missing a filename since the input didn't
contain a GCC line number directive such as '# 2 "input.c"'. In GCC mode,
the GCC builtins are loaded first, in which case the reported location
was ':9'.
Fix this by providing proper location information, even for input that
does not come from the GCC C preprocessor.
Diffstat (limited to 'sys/dev/microcode/run/microcode.h')
0 files changed, 0 insertions, 0 deletions
