maint: fix recent syntax-check failures

* cfg.mk (exclude_file_name_regexp--sc_system_h_headers):
Add chown-core.h to the regexp, to better decouple from system.h.
* src/env.c: Remove minmax.h include already included in system.h.
* src/libstdbuf.c: Likewise.
* src/prog-fprintf.h: Remove doubled semicolon.
This commit is contained in:
Pádraig Brady 2021-11-01 13:36:43 +00:00
parent ea02406748
commit a0468760ff
4 changed files with 2 additions and 4 deletions

2
cfg.mk
View File

@ -839,7 +839,7 @@ exclude_file_name_regexp--sc_bindtextdomain = \
exclude_file_name_regexp--sc_trailing_blank = \
^(tests/pr/|gl/.*\.diff$$|man/help2man)
exclude_file_name_regexp--sc_system_h_headers = \
^src/((die|system|copy|find-mount-point)\.h|make-prime-list\.c)$$
^src/((die|system|copy|chown-core|find-mount-point)\.h|make-prime-list\.c)$$
_src = (crctab|false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname))
_gl_src = (xdecto.max|cl-strtold)

View File

@ -27,7 +27,6 @@
#include "die.h"
#include "error.h"
#include "idx.h"
#include "minmax.h"
#include "operand2sig.h"
#include "quote.h"
#include "sig2str.h"

View File

@ -20,7 +20,6 @@
#include <stdio.h>
#include <stdint.h>
#include "system.h"
#include "minmax.h"
/* Deactivate config.h's "rpl_"-prefixed definitions, since we don't
link gnulib here, and the replacements aren't needed. */

View File

@ -20,6 +20,6 @@
# include <stdio.h>
extern void prog_fprintf (FILE *fp, char const *fmt, ...)
_GL_ATTRIBUTE_FORMAT ((__printf__, 2, 3)) _GL_ATTRIBUTE_NONNULL ((1, 2));;
_GL_ATTRIBUTE_FORMAT ((__printf__, 2, 3)) _GL_ATTRIBUTE_NONNULL ((1, 2));
#endif