[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax-check rule to silence -Winclude-next-absolute-path warning
From: |
Collin Funk |
Subject: |
Re: syntax-check rule to silence -Winclude-next-absolute-path warning |
Date: |
Sun, 18 Feb 2024 12:12:34 -0800 |
User-agent: |
Mozilla Thunderbird |
On 2/18/24 4:44 AM, Bruno Haible wrote:
> Does anyone want to contribute a syntax-check rule (in maint.mk) for this?
I attached a patch that seems to work alright. I'm not the greatest with GNU
Make so it isn't very pretty. Feel free to modify it as much as you would like.
Here is some sample output from Coreutils. One or two are real so I'll submit a
patch there.
[collin@debian coreutils]$ make sc_verify_absolute_include_headers
verify_absolute_include_headers
maint.mk: Use #include <sys/stat.h> instead of #include "sys/stat.h" in
src/od.c
maint.mk: Use #include <error.h> instead of #include "error.h" in src/od.c
maint.mk: Use #include <getopt.h> instead of #include "getopt.h" in src/shuf.c
maint.mk: Use #include <getopt.h> instead of #include "getopt.h" in src/stat.c
maint.mk: Use #include <error.h> instead of #include "error.h" in src/system.h
0001-maint.mk-Add-syntax-check-rule-to-check-for-include-.patch
Description: Text Data
- [PATCH] math: Silence -Winclude-next-absolute-path warning., Collin Funk, 2024/02/17
- Re: [PATCH] math: Silence -Winclude-next-absolute-path warning., Bruno Haible, 2024/02/17
- Re: [PATCH] math: Silence -Winclude-next-absolute-path warning., Collin Funk, 2024/02/17
- Re: [PATCH] math: Silence -Winclude-next-absolute-path warning., Bruno Haible, 2024/02/17
- Re: [PATCH] math: Silence -Winclude-next-absolute-path warning., Bruno Haible, 2024/02/18
- syntax-check rule to silence -Winclude-next-absolute-path warning, Bruno Haible, 2024/02/18
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning,
Collin Funk <=
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Bruno Haible, 2024/02/18
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Jim Meyering, 2024/02/19
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Collin Funk, 2024/02/19
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Jim Meyering, 2024/02/19
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Simon Josefsson, 2024/02/19
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Jim Meyering, 2024/02/19
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Bruno Haible, 2024/02/20
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Collin Funk, 2024/02/20
- Re: syntax-check rule to silence -Winclude-next-absolute-path warning, Bruno Haible, 2024/02/20
- Re: [PATCH] math: Silence -Winclude-next-absolute-path warning., Paul Eggert, 2024/02/19