diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-05-24 15:13:45 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-05-27 21:02:38 +0200 |
| commit | 3fa54adf79940efa0515ab9946d1f48cff095cf0 (patch) | |
| tree | 6975bf4aa950dc3c238de37aee1c2e0024bece47 /tokenize.c | |
| parent | f0fe1cd9e4fe2e937f452561b62c4ab9d0989ece (diff) | |
| download | sparse-dev-3fa54adf79940efa0515ab9946d1f48cff095cf0.tar.gz | |
add an option to suppress warning 'no newline at EOF'
Some platforms have some of their system header files missing the
ending newline. Sparse will then warn about it, again and again,
and more important warnings can easily be lost in the noise.
So, add an option flag '-W[no-]newline-eof' to conditionalize
this warning.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'tokenize.c')
| -rw-r--r-- | tokenize.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -411,7 +411,7 @@ got_eof: c = '\\'; goto out; } - if (stream->pos) + if (stream->pos & Wnewline_eof) warning(stream_pos(stream), "no newline at end of file"); else if (spliced) warning(stream_pos(stream), "backslash-newline at end of file"); |
