wt-status.h: drop stdio.h include
authorJeff King <peff@peff.net>
Tue, 18 Jun 2019 15:54:19 +0000 (11:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Jun 2019 15:19:22 +0000 (08:19 -0700)
We started including stdio.h to pick up the declaration of "FILE" in
f26a001226 (Enable wt-status output to a given FILE pointer.,
2007-09-17). But there's no need, since headers can assume that
git-compat-util.h has been included, which covers stdio.

This should just be redundant, and not hurting anything (like pulling in
includes out of order) because C files are supposed to always include
git-compat-util.h first. But it's worth cleaning up to model good
behavior.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.h
index 64f1ddc9fd9950f7dbe3b0889bf2085111814cec..8849768e9234aeebced0e4a244ead366907e0a04 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef STATUS_H
 #define STATUS_H
 
-#include <stdio.h>
 #include "string-list.h"
 #include "color.h"
 #include "pathspec.h"