findutils-patches
[Top][All Lists]
Advanced

[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




reply via email to

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