From e976502216a069039f433b952433ef7ebc655850 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sat, 22 Apr 2017 19:32:23 +0000 Subject: [PATCH] libgeom(3): note that stdio.h is required when referencing gctl_dump(3) gctl_dump(3) is only exposed when stdio.h is #include'd first, per its addition in r112510. The reasoning noted for the conditional "exposure" of the function was to "limit #include pollution". This addresses an issue I found with the documentation when looking at bug 218809, which in turn addresses a -Wimplicit-function-declaration compiler warning in `tools/regression/geom_gpt/test.c` (it uses gctl_dump(3)). MFC after: 5 weeks Sponsored by: Dell EMC Isilon --- lib/libgeom/libgeom.3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libgeom/libgeom.3 b/lib/libgeom/libgeom.3 index 566d09243f6..dbe21c84d38 100644 --- a/lib/libgeom/libgeom.3 +++ b/lib/libgeom/libgeom.3 @@ -63,6 +63,10 @@ .Sh LIBRARY .Lb libgeom .Sh SYNOPSIS +.Bd -literal +/* stdio.h is only required for `gctl_dump` */ +.Ed +.In stdio.h .In libgeom.h .Ss "Statistics Functions" .Ft void