svn commit: r317290 - head/tools/regression/geom_gpt

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Sat Apr 22 20:59:32 UTC 2017


> On Apr 22, 2017, at 13:06, Rodney W. Grimes <freebsd at pdx.rh.CN85.dnsmgr.net> wrote:
> 
>> Author: ngie
>> Date: Sat Apr 22 20:00:52 2017
>> New Revision: 317290
>> URL: https://svnweb.freebsd.org/changeset/base/317290
>> 
>> Log:
>>  Fix -Wimplicit-function-declaration compilation warning by moving libgeom.h
>>  #include below the stdio.h #include.
>> 
>>  gctl_dump(3) needs stdio.h, per reasoning noted in r317289.
>> 
>>  MFC after:	5 weeks
>>  PR:		218809
>>  Submitted by:	Chang-Hsien Tsai <luke.tw at gmail.com>
>>  Sponsored by:	Dell EMC Isilon
>> 
>> Modified:
>>  head/tools/regression/geom_gpt/test.c
>> 
>> Modified: head/tools/regression/geom_gpt/test.c
>> ==============================================================================
>> --- head/tools/regression/geom_gpt/test.c	Sat Apr 22 19:32:23 2017	(r317289)
>> +++ head/tools/regression/geom_gpt/test.c	Sat Apr 22 20:00:52 2017	(r317290)
>> @@ -29,12 +29,12 @@ __FBSDID("$FreeBSD$");
>> 
>> #include <sys/param.h>
>> #include <errno.h>
>> -#include <libgeom.h>
>> #include <limits.h>
>> #include <stdio.h>
>> #include <stdlib.h>
>> #include <string.h>
>> #include <unistd.h>
>> +#include <libgeom.h>
> #include <libgeom.h>	/* This is not in alphabetic order per r317289 */
>> 
>> struct retval {
>> 	struct retval *retval;
> 
> Might it be a good idea to mark this in the test.c file as to why
> these are not sorted in order to prevent regressions of this in
> the future?

Please see r317289. There was an omission in the documentation that allowed this to happen.

This also won’t happen again given that the test is now being compiled with WARNS?= 6 :).

-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20170422/eeb5588f/attachment.sig>


More information about the svn-src-all mailing list