[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH 05/19] Don't include xalloc.h where we don't
From: |
James Youngman |
Subject: |
[Findutils-patches] [PATCH 05/19] Don't include xalloc.h where we don't use it. |
Date: |
Fri, 2 Apr 2010 23:47:05 +0100 |
* find/ftsfind.c: We don't use anything from xalloc.h, so don't
#include it.
Signed-off-by: James Youngman <address@hidden>
---
ChangeLog | 3 +++
cfg.mk | 3 +--
find/ftsfind.c | 1 -
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9c656f4..93ec286 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-04-02 James Youngman <address@hidden>
+ * find/ftsfind.c: We don't use anything from xalloc.h, so don't
+ #include it.
+
Eliminate some unused function result warnings.
* lib/unused-result.h: New file, defines function attribute macro
__attribute_warn_unused_result__.
diff --git a/cfg.mk b/cfg.mk
index c2e1c10..73186fd 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -25,8 +25,7 @@ skip_dunno = sc_immutable_NEWS sc_makefile_at_at_check \
# Understand, but fix later.
skip_defer = sc_program_name sc_prohibit_atoi_atof \
sc_prohibit_magic_number_exit sc_prohibit_stat_st_blocks \
- sc_prohibit_strcmp sc_prohibit_test_minus_ao \
- sc_prohibit_xalloc_without_use
+ sc_prohibit_strcmp sc_prohibit_test_minus_ao
# False positives I don't have a workaround for yet.
# sc_space_tab: several .xo test output files contain this sequence
diff --git a/find/ftsfind.c b/find/ftsfind.c
index 5566805..af2d84f 100644
--- a/find/ftsfind.c
+++ b/find/ftsfind.c
@@ -44,7 +44,6 @@
#include <unistd.h>
-#include "xalloc.h"
#include "closeout.h"
#include "quotearg.h"
#include "quote.h"
--
1.7.0
- [Findutils-patches] [PATCH 01/19] Mark some missed error messages for translation., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 02/19] * cfg.mk: Explain that we cannot enable the sc_texinfo_acronym syntax check right now, since the perm.texi file uses @acronym{GNU} but we try to keep that in sync. with coreutils., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 05/19] Don't include xalloc.h where we don't use it.,
James Youngman <=
- [Findutils-patches] [PATCH 03/19] Fix some space-followed-by-tab sequences., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 06/19] Avoid false positives for the sc_prohibit_test_minus_ao syntax check., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 04/19] Fix some compilation unused-result and missing-declaration warnings., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 08/19] Move safe_atoi out into a separate module., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 09/19] Remove some obsolete source files from POTFILES.in, James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 10/19] Remove files which exist but have no translated messages., James Youngman, 2010/04/02