Pádraig Brady wrote: > Remove unneeded includes as reported by: > http://code.google.com/p/include-what-you-use/ ... > Subject: [PATCH] maint: remove unneeded includes > > Remove unneeded includes as reported by: > http://code.google.com/p/include-what-you-use/ > > * src/cp-hash.c: Remove unused include. > * src/dd.c: Likewise. > * src/du.c: Likewise. > * src/head.c: Likewise. > * src/kill.c: Likewise. > * src/ls.c: Likewise. > * src/stdbuf.c: Likewise. > * src/timeout.c: Likewise. > * src/truncate.c: Likewise. > --- > src/cp-hash.c | 1 - > src/dd.c | 1 - > src/du.c | 1 - > src/head.c | 1 - > src/kill.c | 1 - > src/ls.c | 2 -- > src/stdbuf.c | 1 - > src/timeout.c | 1 - > src/truncate.c | 1 - > 9 files changed, 0 insertions(+), 10 deletions(-) > > diff --git a/src/cp-hash.c b/src/cp-hash.c > index 31bee71..575d01a 100644 > --- a/src/cp-hash.c > +++ b/src/cp-hash.c > @@ -22,7 +22,6 @@ > #include <sys/types.h> > #include "system.h" > > -#include "same.h" > #include "hash.h" > #include "cp-hash.h"
Nice. Thanks! I haven't tried it yet. How long does it take to run? Sounds like a good candidate to be run as a syntax-check rule.