bug-gnulib
[Top][All Lists]
Advanced

[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

Attachment: 0001-maint.mk-Add-syntax-check-rule-to-check-for-include-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]