[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH 1/6] maint: avoid syntax-check failures
From: |
Bernhard Voelker |
Subject: |
[Findutils-patches] [PATCH 1/6] maint: avoid syntax-check failures |
Date: |
Tue, 16 Feb 2016 23:47:10 +0100 |
'make syntax-check' failed with:
locate/word_io.h:
maint.mk: the above files include assert.h but don't use it
maint.mk:479: recipe for target 'sc_prohibit_assert_without_use' failed
...
lib/bugreports.h:
maint.mk: empty line(s) or no newline at EOF
maint.mk:929: recipe for target 'sc_prohibit_empty_lines_at_EOF' failed
* locate/word_io.h (#include <assert.h>): Remove superfluous inclusion
of <assert.h>.
* lib/bugreports.h: Remove stray empty line at EOF.
---
lib/bugreports.h | 3 ---
locate/word_io.c | 1 -
2 files changed, 4 deletions(-)
diff --git a/lib/bugreports.h b/lib/bugreports.h
index bec1544..9c72acc 100644
--- a/lib/bugreports.h
+++ b/lib/bugreports.h
@@ -23,7 +23,4 @@
/* Interpreetation of the return code is as for fprintf. */
int explain_how_to_report_bugs (FILE *f, const char *program_name);
-
#endif
-
-
diff --git a/locate/word_io.c b/locate/word_io.c
index 4b64b48..7c943c1 100644
--- a/locate/word_io.c
+++ b/locate/word_io.c
@@ -19,7 +19,6 @@
#include <config.h>
/* system headers. */
-#include <assert.h>
#include <errno.h>
#include <stdbool.h> /* for bool */
#include <stdio.h>
--
2.1.4
- [Findutils-patches] [PATCH 0/6]: usage change et al, Bernhard Voelker, 2016/02/16
- [Findutils-patches] [PATCH 3/6] maint: adjust .gitignore files, Bernhard Voelker, 2016/02/16
- [Findutils-patches] [PATCH 5/6] doc: improve description of the -D option in find.1, Bernhard Voelker, 2016/02/16
- [Findutils-patches] [PATCH 6/6] build: stop distributing gzip'd releases; xz is enough, Bernhard Voelker, 2016/02/16
- [Findutils-patches] [PATCH 2/6] maint: add new bugreports.c to POTFILES.in, Bernhard Voelker, 2016/02/16
- [Findutils-patches] [PATCH 1/6] maint: avoid syntax-check failures,
Bernhard Voelker <=
- [Findutils-patches] [PATCH 4/6] all: output full usage only when requested via the --help option, Bernhard Voelker, 2016/02/16
- Re: [Findutils-patches] [PATCH 0/6]: usage change et al, James Youngman, 2016/02/21